What are the constraints?
When you graph the constraints the four points you can use are (0,0), (10,0), (0,2), and (6,2).
(10,0) is the point that gives you the maximum value which is 40.
7:50 am
60 minutes before 8:40 would be 7:40 so 10 minutes after that would be 7:50