This problem would be best modeled by an inequality.
Let t = the number of hours.
18 + 5t < 78
5t < 60
t < 12
The way the question sounds, it would not be a lessthan or equal to, because they want to spend less than 78. It would be a less than or equal problem if they said "no more than 78"