A / B two warehouse grain ratio is 5 to 1. If we transfer 120 tons of grain into the second warehouse from the warehouse, the ratio of two grain to grain is 7 to 5, and how much food is there in two warehouses? Prawns, help me_

A / B two warehouse grain ratio is 5 to 1. If we transfer 120 tons of grain into the second warehouse from the warehouse, the ratio of two grain to grain is 7 to 5, and how much food is there in two warehouses? Prawns, help me_

There are x tons of grain in total
(5/6x-120)×5/7=1/6x+120
The solution is x = 480