Here's an outline - details left for you.

Get a normal to the tangent plane for each surface: A normal to a tangent plane is given by (z_x)i + (z_y)j - k.

Find the curve of intersection of the two surfaces by solving :

Take the dot product of the two normals and substitute into the result. The resulting expression should simplify to zero.