Gary earned overtime, so he worked at least 40 hours. for which he was paid 40 hours * $12/hour = $<<40*12=480>>480 at his normal wage.
This means that $696 - $480 = $<<696-480=216>>216 was earned at his overtime wage.
His overtime wage is 1.5 his normal wage, or $12 * 1.5 = $<<12*1.5=18>>18 per hour.
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