A and B each has some money. If a gives Rs.30 to B then B will have twice the money left with A. But if B gives Rs.10 to A, then A will have thrice as much as is left with B. How much money does each have?
Let A has Rs.x and B has Rs.y
After giving Rs.30 to B
A has left with Rs. x-30 and B will have Rs.y+30
By the given condition
y+30=2(x-30) (i)
After giving Rs.10 to A, B is left with Rs.y-10 and A will have x+10
x+10=3(y-10) (ii)
solve (i) and (ii) eq.
A has Rs.62 and B has Rs.34