P = (a cos θ, b sin θ) on the ellipse, (a sec θ, b tan θ) on the hyperbola. On the hyperbola θ is kept at least 18° from ±90°, where sec θ is infinite.
Challenge
The ellipse x²/25 + y²/9 = 1. Move P to a point where it is equally far from both foci.