Q: I bought four oranges for 300 yen each and four apples for 400 yen each, for a total price of 1,400 yen. How many apples did you buy?
A: If the number of oranges is x and the number of apples is y, then x + y = 4 and 300x + 400 Y = 1400.