He worked for 8-3=<<8-3=5>>5 days
So he worked for 5*8=<<5*8=40>>40 hours
#### 40