Some children were riding on the bus. At the bus stop w more children got on the bus. Then there were x children altogether on the bus. How many children were riding on the bus before the bus stop?
Let's denote the number of children on the bus before the bus stop by y.

y + w = x

y = x - w

Therefore, the answer (symbolic expression) is: 

x - w