Actually i got the logic in a crude manner if b=1 it is 34*2
b=2 it is 34*4