a salesman bought a case of 48 backpacks for $576. he sold 17 of them fot $18 at the swap meet, and the rest were sold to a department store for $25 each. how much was the saleman's profit?