Problem: the difference of 2 digit number & the number obtained by interchanging the digits is 36 . what is the sum and the number if the ratio between the digits of the number is 1 : 2 ?
Rationale: "let the number be xy . given xy – yx = 36 . this means the number is greater is than the number got on reversing the digits . this shows that the ten ’ s digit x > unit digit y . also given ratio between digits is 1 : 2 = > x = 2 y ( 10 x + y ) – ( 10 y + x ) = 36 = > x – y = 4 = > 2 y – y = 4 . hence , ( x + y ) – ( x – y ) = 3 y – y = 2 y = 8 b"
annotated_formula: multiply(divide(36, subtract(multiply(subtract(const_10, 1), multiply(2, 1)), subtract(const_10, 1))), 2)