Problem 4. In a sports store, the sneakers were sold for 900 denars cheaper than the trainer. On sale, the sneakers were reduced by $10 \%$ and the trainer by $5 \%$. Gabi bought sneakers and a trainer on sale and paid a total of 5480 denars for them. How much did the sneakers and the trainer cost before the discount?
Solution. The price of the slippers before the discount was $p$, and the price of the sneakers was $p+900$. After the discount, the following applies:

$$
\frac{90}{100} p+\frac{95}{100}(p+900)=5480
$$

From here, the slippers before the discount were 2500 denars, and the sneakers were 3400 denars.

## VIII Section