Doubt in answer

31 for a;
7
2 for b;
63 for c;
5
3 for d;
total is 50 bits but answer given is 42 bits