Accept number and check whether 7th and 12th bit is on or off

I am trying to solve this question but bit confused please help me out