X = 1 hr lessons and y = 1/2 hr lessons
x + y = 35......y = 35 - x
40x + 25y = 1115
40x + 25(35 - x) = 1115
40x + 875 - 25x = 1115
40x - 25x = 1115 - 875
15x = 240
x = 240/15
x = 16 <=== there are 16 one-hr lessons
and 19 half-hr lessons
590.4
I believe let me know if it wrong
T-2(3-2t)=2t+9
t-6+4t=2t+9
5t-6=2t+9
5t-2t=9+6
3t=15
t=15/3
t=5