Problem 289: (2021 AIME II, 10)
Two spheres with radii $36$ and one sphere with radius $13$ are each externally tangent to the other two spheres and to two different planes $\mathcal{P}$ and $\mathcal{Q}$. The intersection of planes $\mathcal{P}$ and $\mathcal{Q}$ is the line $\ell$. The distance from line $\ell$ to the point where the sphere with radius $13$ is tangent to plane $\mathcal{P}$ is $\tfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m + n$.
- Let the half-angle between the planes be $\theta$. A sphere of radius $r$ tangent to both planes has its center in the bisecting plane at distance $\frac r{\sin\theta}$ from $\ell$, and touches $\mathcal P$ at distance $\frac r{\tan\theta}$ from $\ell$.
- In the bisecting plane the centers are $\left(\frac{36}{\sin\theta},\pm36\right)$ and $\left(\frac{13}{\sin\theta},0\right)$, with distance $49$, so $\bigl(\frac{23}{\sin\theta}\bigr)^2+36^2=49^2$, so $\sin\theta=\frac{23}{\sqrt{1105}}$, $\tan\theta=\frac{23}{24}$.
- Distance $\frac{13\cdot24}{23}=\frac{312}{23}$, so $m+n=335$. The answer is $\boxed{335}$.
Two spheres with radii $50$ and one sphere with radius $17$ are each externally tangent to the other two spheres and to two different planes $\mathcal{P}$ and $\mathcal{Q}$. The intersection of planes $\mathcal{P}$ and $\mathcal{Q}$ is the line $\ell$. The distance from line $\ell$ to the point where the sphere with radius $17$ is tangent to plane $\mathcal{P}$ is $\tfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m + n$.