Find the number of wagons
We have an engine with \(W\) wagons attached to it already, which can move at a particular speed. If 7 wagons are added to this, the speed reduces by 10 mph. If another 20 are added, the speed further reduces by 20 mph. Find the initial number of wagons \(W\).