Hi
Breaking it up into time intervals
6AM -3°F
9AM -3° + 2°*3 = 3° |will rise at a rate of 2° per hour for 3 hr
3PM 3° + 3°*6 = 21° |will rise at a rate of 3° per hour for 6 hr
6PM 21° - 2°*3 = 15° |will fall at a rate of 2° per hour for 3 hr
8PM 15° - 5°*2 = 5°F |will fall at a rate of 5° per hour for 2 hr