We have 40 minutes to exercise, and we want to burn 300 calories.
The elliptical trainer burns 8 cal/min and the stationary bike burns 6 cal/min.
We can write the total amount of calories burned as:
[tex]8x+6y=300[/tex]x: minutes in the elliptical trainer.
y: minutes in the stationery bike.
We also know that the total amount of minutes is 40, so we can write:
[tex]x+y=40[/tex]We can write y in function of x, and then solve the first equation:
[tex]x+y=40\longrightarrow y=40-x[/tex][tex]\begin{gathered} 8x+6(40-x)=300 \\ 8x+240-6x=300 \\ 2x=300-240 \\ 2x=60 \\ x=\frac{60}{2} \\ x=30 \end{gathered}[/tex]Then, for x=30, the value of y is:
[tex]y=40-x=40-30=10[/tex]You should spend
30 minutes on the elliptical trainer and
10 minutes on the stationary bike.