The first thing to do is to carefully list out the information given to us:
At 9 am: T = 34 degrees
Each hour means every hour (every one hour)
This means that for every 1 hour that passed, the temperature dropped by 8 degrees. We have an equation for this thus:
To get the temperature at 4 pm, calculate how many hours has elapsed since 9 am & slot it into the equation above:
9 am to 4 pm = 7 hours