You are taxed at a rate of 5% for all online purchases and 8.5% for all in-store purchases. If you pay a total of 40$ in taxes in addition to spending $500 on purchases (pre-tax), how much money did you spend online, and how much was spent in the store? (before tax, to the cent)

Need two equations and please solve!

It already provided one equation. Which is:

0.05x + 0.085y = 40