Both are irrational. i hope this helps!
Corner points in this graph are: ( 0,0 ) ( 0,8 ) ( 5,6 ) and ( 8, 0 ).
If we plug those values in : P = 2 x + 3 y
P ( 0,0 )= 0
P ( 0,8 ) = 2 * 0 + 3 * 8 = 24
P ( 6 , 5 ) = 2 * 6 + 3 * 5 = 12 + 15 = 27
P ( 8 , 0 ) = 2 * 8 + 3 * 0 = 16
The maximum value is:
P max ( 6 , 5 ) = 27