The number of hours students should spend on bicycle and skating is 2 hours and 3 hours respectively.
How many hours should students spend doing each activity?
let
Number of hours for bicycle = x
Number of hours for skating = y
So,
x + y = 5. (1)
8x + 6y = 34. (2)
From (1)
x = 5 - y
Substitute into (2)
8x + 6y = 34.
8(5 - y) + 6y = 34
40 - 8y + 6y = 34
40 - 2y = 34
-2y = 34 - 40
-2y = -6
Divide both sides by -2
y = -6/-2
y = 3
Therefore, substitute x into (1)
x + y = 5. (1)
x + 3 = 5
x = 5 - 3
x = 2