Correction: Make that X + Y = 10, not X + Y - 10.
It's all differential equations these days...
...maybe you need a refresher course?