Ms. Dunn spent $10.70 to buy a total of 24 slices of pie or cookies. A slice of pie costs $0.80 and a cookie costs $0.30. How many slices of pie did Ms. Dunn buy?


a. 7

b. 12

c. 17

d. 10