Work backwards from the file cost. The file ($4) is 2/5 of the remainder after food; that remainder is 2/3 of the total.

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

• File = $4 = 2/5 of remainder after food
• 1/5 of remainder → $4 ÷ 2 = $2
• Remainder after food → $2 × 5 = $10
• Remainder = 2/3 of total → 1/3 = $5, total = $15
• Food → 1/3 × $15 = $5
• Money left → $15 − $5 − $4 = $6

Mandy had $6 left.
Check: Food $5 + File $4 + Left $6 = $15 total. ✓