Work backwards from the file cost. The file is 1/4 of the remainder after food; that remainder is 8/9 of the total.

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

• File = $4 = 1/4 of remainder after food
• Remainder after food → $4 × 4 = $16
• Remainder = 8/9 of total → 1/9 = $16 ÷ 8 = $2
• Food → 1/9 × total = $2

Liane spent $2 on food.
Check: Food $2, remainder $16. File = 1/4 × $16 = $4. Left = $16 − $4 = $12 = 3/4 × $16. Total = $18. ✓