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.
Plain numbers are given; italic underlined numbers are worked out.
He had $60 at first.
Check: $60 − $31 spent = $29 left. ✓