Problem: rs . 385 were divided among x , y , z in such a way that x had rs . 20 more than y and z had rs 15 more than x . how much was y ’ s share ?
Rationale: let y gets rs x . then we can say x gets rs ( x + 20 ) and y gets rs ( x + 35 ) . x + 20 + x + x + 35 = 385 3 x = 330 x = 110 . r ’ s share = rs ( 110 + 35 ) = rs . 145 b
annotated_formula: add(15, add(divide(subtract(385, add(15, add(20, 20))), const_3), 20))