Mrs Gonzalez bought centerpieces to put on each table at a graduation party. She spent $31.50. There are 8 tables each requiring either a candle or vase. Candles cost $3 and vases cost $4.25. How many of each type did she buy?