This problem is in a chapter on the Greatest Common Divisor: The Euclidean Algorithm. Apparently I managed to arrive at one of the 3 possible solutions.
Problem goes 'man at a casino wins \$1020 in \$20 and 50 \$chips. if he has more \$50 than \$20 chips, how many chips of each denomination could he possibly have?'
To solve the problem I tried:
$$\gcd(20,50) = 10$$
so $20x + 50y = 10$
$$20(3) + 50(-1) = 10$$
so $20(306 - 50k) + 50(-102 + 20k) = 1020$
solved for $k$: must be $5.1\le k \le 6.12$ so one solution is if $k=6$ then $x=6$, $y=18$. (this is one of the solutions). there are two other solutions provided. not sure how to arrive at those. thanks.