William is throwing a party for his math class and decides to visit Jones Pi Bakery. There, cupcakes cost $2 and Pies cost $7.50. William bought a total of 20 items. In all, he spent $73. How many cupcakes did William purchased?