John's teacher wants to buy giant cookies for the entire class. If cookies cost $2.50 each, write an equation that shows how many can be bought with $40 and solve.