I'll give you the second one... And maybe that'll show you the method and you may be able to solve the first one, if not I'll help you there as well.
Alright, so your given:
Bound by the constraint function:
You've already shown that the components of the gradients are related by the constant multiple , which gave you:
First thing is to try to solve each equation for a different variable if possible:
(We can conclude this because neither x nor z can be undefined, and therefore )
You can see right off the bat that x and z are similar, but more specifically are:
Now, you plug this all in the constraint function
Now you plug this into the formula for z:
So, the critical points are:
You can plug these in on your own to find out whether they are a max or a min.