The equation can be listed according to the meaning of the question: Y-X=22.
5X-2Y=40
Solution: X=28 Y=50
28×5+50×2+36× 1=276
Answer: Xiaohong saved 276 yuan in her piggy bank.