Task: Two items are being sold, small and large types. The small type costs $98$ cents each, the large type costs $158$ cents. In the end, the total amount of sold items is $17028$ cents $(\$170.28)$. All in all, there have been $100$ small and $100$ large items at the beginning.*
So I wrote down an equation $98x + 158y = 17028$, where x is the amount of small types and y the amount of large types, solved for y and plotted a function. The only natural solution for that equation is $x = 48, y = 78$, with $1 \le x,y \le 100$
Any idea how this could be proved? I tried writing $xy = l$ for an $l \in \mathbb{N}$, and used $y = \dfrac{l}{x}$ in the equation above. I got $98x + 158 \dfrac{l}{x} = 17028 \iff 98x^2 - 17028x + 158l = 0$ and tried solving this through the p-q-formula, but this approach was not quite constructive so far deciding what l has to be, so that x is a natural number.