A person did his first shift from 8:30 AM to 11:45 AM.
The total hours in the morning were:
11 : 45
- 8 : 30
----------
3 : 15
3 hours and 15 minutes.
The second shift was from 12:30 PM to 5:15 PM.
To have the times easier subtracted, assume the final time was 5:30 PM (15 minutes in excess). The total time in the afternoon was:
5:30
- 0:30
----------
5:00
But we have to subtract 15 minutes, thus the total time in the afternoon was
4 hours and 45 minutes.
The total time was 3:15 + 4:45 = 8:00
Answer: 8 hours