Answer:
Set the lecture time to x and the lab time to x - 65
The time in both the lecture and lab add up to 295 minutes, so
x + x - 65 = 295
2x = 360
x = 180 (lecture)
180 - 65 = 115 (lab time)
So the students spent 180 minutes in lecture and 115 minutes in the lab