Let $P$ be a point in the interior of triangle $ABC$. The lengths of $AP, BP,$ and $CP$ are $3, 4,$ and $5,$ respectively. Find the value of $AB^{2}$ if $AC = 7$ and $CB = 8.$
I tried using heron's formula but I ended up with a $4$th degree polynomial which was hard to solve.