His money is 4 equal units. Three of them ($12) were spent on the book.

[[model:questions/solutions/q3406.png]]

• 3 units → $12
• 1 unit → $12 ÷ 3 = $4
• At first = 4 units → 4 × $4 = $16

He had $16 at first.
Check: $$\frac{3}{4}$$ of $16 = $12. ✓