2. Are there any restrictions on $x,y,z$? (Do they have to be integers?) If not, you can just use Lagrange Multipliers.