After tracking his workout routine for 8 weeks, Josh discovered that he had spent 4 hours working out every week except on some occasions. At one point, he spent 5 hours each for two consecutive weeks. Another time, he spent 6 hours in one week. What is the total number of hours he has spent working out across the 8 weeks?
For 2 weeks, he spent 5 hours each for a total of 5*2 = 
<gadget id="calculator">5*2</gadget>
<output>10</output>
10 hours.
In another week, he spent 6 hours; which gives a total of 10+6 = 
<gadget id="calculator">10+6</gadget>
<output>16</output>
16 hours
2+1 = 
<gadget id="calculator">2+1</gadget>
<output>3</output>
3 weeks have been accounted for.
He tracked 8 weeks so there are 8-3 = 
<gadget id="calculator">8-3</gadget>
<output>5</output>
5 weeks left.
He spent 4 hours each week for 5 weeks for a total of 4*5 = 
<gadget id="calculator">4*5</gadget>
<output>20</output>
20 hours.
The total across the 8 weeks is: 16+20 = 
<gadget id="calculator">16+20</gadget>
<output>36</output>
36 hours.

<result>36</result>