The area of triangle $ABC$ is $2007$. One of its sides has length $18$, and the tangent of the angle opposite that side is $\frac{2007}{24832}$. When the altitude is dropped to the side of length $18$, it cuts that side into two segments. Find the sum of the squares of those two segments.

Let's think step by step and output the final answer within \boxed{}.
user