The temperature at 9:00pm one evening was 40 Fahrenheit. Over the next 4 hours the temperature dropped at n average rate of 3 per hour. What was the temperature at 1:00am?