A factory manufactures two products, P and Q. Each unit of P requires 3 hours in the manufacturing department and 2 hours in the packaging department. Each unit of Q requires 4 hours in manufacturing and 3 hours in packaging. The total available hours in the manufacturing and packaging departments are 120 and 90 hours, respectively. Formulate this problem as a linear programming problem to maximize profit.