Finite Math Examples

Maximize the Equation given the Constraints p=2x+3y+z+4w , x+y+z+w=40 , 2x+y-z-w=10 , x+y+z+w=10
I am unable to solve this problem.