Cooper and his children went into a grocery store and he bought $6 worth of apples and bananas. Each apple costs $1 and each banana costs $0.50. He bought a total of 10 apples and bananas altogether. Determine the number of apples, x, and the number of bananas, y, that Cooper bought.
For this problem, you can set up a system of equations:
\(x+y=10\)
\(x+0.5y=6\)
We can multiply the top equation by -1 so it becomes \(-x-y=-10\).
\(-x-y=-10\)
\(x+0.5y=6\)
Now, we can use elimination to cancel out the \(x\).
\(-0.5y=-4 \)
\(y=8\)
Because y=2, x must be 8 since x+y=10. So, \(\boxed{x=2,y=8}\)