Finite Math Examples

Maximize the Equation given the Constraints p=40x+50y , 2x+y=16
I am unable to solve this problem.