I am trying to find all planes that are tangent to both x^2 + y^2 + z^2 = 1 and x^2 + y^2 + 2z = 0.

I tried using gradient to get the general equation of the planes for each but after that I got stuck.

Any suggestions would be greatly appreciated. Thanks!