We find the maximum of $f(x,y,z) = 2x+y+z$ on the intersection of the plain $x-y+2z = 1$ and the paraboloid $z = x^2+2y^2$