Since footballs yield more profit than baseballs, the store would aim to sell more footballs. It would like to sell the maximum number of 45 footballs. However, only a maximum of 80 footballs and baseballs can be kept in stock, and at least 40 of those are baseballs. This means that there are only 40 footballs at most, and the maximum profit for the store occurs if they sell 40 footballs and 40 baseballs.
This gives a total profit of 40($6) + 40($5.5) = $460.