HINT
Consider a cross section of the two spheres down the vertical of the corner and across the 45 degree line in the horizontal plane. The intersection (cross-section) would be two circles tangent to the line in the xy-plane but not touching the z-axis.