The feasible corners are (0,0), (5,0), (5,1), (3,3), and (0,3). Intersecting x+y=6 with x=5 gives (5,1); intersecting it with y=3 gives (3,3). Evaluate P=x+4y at every corner:
P(0,0)P(5,0)P(5,1)P(3,3)P(0,3)=0,=5,=5+4=9,=3+12=15,=12.
The maximum is 15, at (3,3); the corner (5,1) gives only 9.