Answer:
x = 7
y = 1
Step-by-step explanation:
Let's assign the baseball to x and soccer to y. If each baseball game takes 2 hours and each soccer game takes 1 hour and we don't want to spend more than 15 hours we get the equation:
2x + y = 15
We have one equation now and we can get the second one from the number of games. We know that we want to attend 8 games therefore the number of baseball games plus the number of soccer games must be equal so we can use the equation:
x + y = 8
Now that we have our two equations we can use elimination to get x and y.
2x + y = 15
x + y = 8
isolate one of the variables from either equation. I chose to isolate x from the second equation givnig me:
x = 8 - y
now we can plug x back into the first equation to solve for y.
2x + y = 15
2(8 - y) + y = 15
16 - 2y + y = 15
-y = -1
y = 1
now that we have y we can solve for x by pluging it back into one of the origoriginal equations.
x = 8 - y
x = 8 - 1
x = 7