A and B have the same amount of money at first. After A gave B $50, B had 5 times as much money as A had left. How much do A and B have at first?

A and B have the same amount of money at first. After A gave B $50, B had 5 times as much money as A had left. How much do A and B have at first?

Explanation

5(X - 50) = X + 50
5X - 250 = X + 50
4X = 300
X = 75