Below is an instruction that describes a task. Write a response that appropriately completes the request in English. Please answer in English.

### Instruction:
A lot of people have been sick at Gary's workplace, so he's been working a lot of extra shifts to fill in for people. As a result, he's earned some overtime (where every hour after 40 he earns 1.5 times his normal wage.) His paycheck (before taxes are taken out) came out to $696. If Gary normally earns $12 per hour, how many hours did he work that week?

### Response:
Gary earned overtime, which means he worked at least 40 hours.
For the first 40 hours of the week, he earned 40 hours * $12 per hour = $<<40*12=480>>480 at his normal wage.
The rest of his wages came from overtime, which he earns at $12 * 1.5 = $<<12*1.5=18>>18 per hour.
This means that Gary worked $696 - $480 = $<<696-480=216>>216 worth of overtime.
So Gary worked $216 / $18 per hour = <<216/18=12>>12 hours' worth of overtime.
So in total, Gary worked 40 hours + 12 hours = <<40+12=52>>52 hours that week.
#### 52