Cameron had $24 to spend on 3 paintbrushes for his art class. After buying them, Cameron had $3 left. How much did each of the paintbrushes cost?