X+y= 10 can be obtained from the problem.
28x+ 18y=200
solve
x=2,y=8
Because football is more expensive than basketball, you can also buy 1 football and 9/basketball.
You can also set inequality equations.
x+y= 10
28x+ 18y & lt; =200
Get x