## Task 5 - 210835

Someone withdraws a certain amount of money from their savings account. They receive this amount paid out in a total of 29 banknotes, exclusively in 10-mark notes, 20-mark notes, and 50-mark notes. The number of 10-mark notes is 1 less than the number of 20-mark notes. The number of 50-mark notes is greater than twice but less than three times the number of 20-mark notes.

Determine the amount of money withdrawn!
Assume that $x$ twenty-mark bills and $y$ fifty-mark bills were issued. Then $(x-1)$ ten-mark bills were issued, and it holds that:

$$
(x-1)+x+y=29, \quad \text { thus } \quad 2 x+y=30 \quad \text { and } \quad 2 xy \text{ follows } 5 x>30, \text{ so } x>6. (2)

From (1) and (2) it follows that $x=7$, thus $y=16$.

Therefore, 6 ten-mark bills, 7 twenty-mark bills, and 16 fifty-mark bills, amounting to $1000 \mathrm{M}$, were issued.