Answer: He can buy a maximum of 15 donuts
Explanation: If he bought 7 cupcakes costin $2.50 each then you would multiply 2.50 by 7 which would give you $17.50
then you subtract 17.50 from 40 which gives $22.50 left to use for donuts
then you know you need to have a minimum 18 cupcakes and donuts together so we multiply 1.50 x 11 for the remaining 11 donuts you need and that leaves you with six dollars then if you multiply 1.50 x 4 it gives you the remaining 6 dollars you need so the max number of donuts you may buy is 15
Hope this Helps!