the difference between a two digit number and the number obtained by interchanging the digits is 36 . what is the difference between the sum and the difference of the digits of the number if the ratio between the digits of the number is 1 : 2 ?
sol . since the number is greater than the number obtained on reversing the digits , so the ten ' s is greater than the unit ' s digit . let the ten ' s and units digit be 2 x and x respectively . then , ( 10 × 2 x + x ) - ( 10 x + 2 x ) = 36 ⇔ 9 x = 36 ⇔ x = 4 . ∴ required difference = ( 2 x + x ) - ( 2 x - x ) = 2 x = 8 . answer b
multiply(subtract(const_3, 1), divide(36, subtract(add(multiply(const_10, 2), 1), add(const_10, 2))))