Finite Math Examples

Maximize the Equation given the Constraints p=3x+3y , 2x+y=30 , x+2y=24
I am unable to solve this problem.