I think the binary one is 11111110 (bin) ÷ 2(dec) = ?(dec)
Anyway, 2 in binary is 10 and so the first part is really easy, you just knock off the 0.
11111110 ÷ 10 = 1111111.
Then, to convert that into decimal, assign each 1 its power-of-2 value.
1111111 --> 1+2+4+8+16+32+64 = 127.