Calculating maximum profit

A game company is developing two new games, a board game and a mechanical game. Each board game requires to manufacture, to assemble, and to inspect and package. Each mechanical game requires to manufacture, to assemble, and to inspect and package. In a given week there are 40h available for manufacturing, 32h available for assembly, and 18h for inspection and packaging. Suppose the profit on each board game is $10 and the profit on each mechanical game is $15. How many of each game should be produced each week for maximum profit?

I know how to maximize a function, but I have no idea how to set up the equation for this problem.