p , q and r have $ 5000 among themselves . r has two - thirds of the total amount with p and q . find the amount with r ?
"e 2000 let the amount with r be $ r r = 2 / 3 ( total amount with p and q ) r = 2 / 3 ( 5000 - r ) = > 3 r = 10000 - 2 r = > 5 r = 10000 = > r = 2000 ."
divide(multiply(5000, multiply(const_2, const_2)), add(add(multiply(divide(multiply(const_2, const_2), const_3), const_3), multiply(const_1, const_3)), multiply(const_1, const_3)))