Finite Math Examples

Maximize the Equation given the Constraints 7x-10y=0 , 10x-7y=0 , p=3x+y , x+y=17
I am unable to solve this problem.