Let the number of years of watching TV be
x
.
The number of years sleeping exceeds the number of years watching TV by
18
. This means that the number of years sleeping is higher than the number of years watching TV by
18
and can be represented by
(x+18).
The total time is 34
years. So we can form the following equation and solve for the required values:
x+(x+18)=34
x+x+18=34
2x=34-18
2x=16
x=16/2
x=8
Thus, the number of years watching is 8
and the number of years sleeping is
8+18=26
.