at a bakery the cost of one cupcake and 2 slices of pie is $12.40. the cost of 2 cupcakes and 3 slices of pie costs $20.20. what is the cost of one cupcake?

Let the number of cupcakes be c
Let the number of pie slices be p
Total Cost = Unit cost * quantity

So we're given two equations:

1c + 2p = 12.40

2c + 3p = 20.20

We can solve this system of equations any one of three ways: