Answer:
x + 5y = 237
5x + 5y = 465
Explanation:
Let
x = length of cardio class
y = length of weightlifting class
x + 5y = 237 (1)
5x + 5y = 465 (2)
Using elimination method
Subtract (1) from (2) to eliminate y
5x - x = 465 - 237
4x = 228
x = 228/4
x = 57 minutes
Substitute x = 57 into (1)
x + 5y = 237 (1)
57 + 5y = 237
5y = 237 - 57
5y = 180
y = 180/5
y = 36 minutes
x = length of cardio class = 57 minutes
y = length of weightlifting class = 36 minutes