Sandra is buying cupcakes and cake slices for her party. At the bakery she goes to, each cupcake costs $2.50 and each cake slice costs $3.25. Sandra buys a total of 22 items and spends $62.50. Write a system of equations to determine how many cupcakes and how many cake slices Sandra bought. Be sure to define your variables.

Let:

x = number of cupcakes purchased
y = number of cake slices purchased

The system of equations is:
1) x + y = 22 (Sandra bought a total of 22 items)
2) $2.50x + $3.25y = $62.50 (Sandra spent a total of $62.50)