The money he had at first is the whole bar: what he spent (rice + noodles) plus what was left. The $29 left is given; the $16 and $15 are worked out.
[[model:questions/solutions/q4136.png]]
• Rice → 2 × $8 = $16
• Noodles → 3 × $5 = $15
• Spent → $16 + $15 = $31
• At first → $31 + $29 = $60
He had $60 at first.
Check: $60 − $31 spent = $29 left. ✓