The inscribed circle of triangle \(ABC\) is tangent to \(\overline{AB}\) at \(P_{},\) and its radius is 21. Given that \(AP=23\) and \(PB=27,\) find the perimeter of the triangle.
(第十七届AIME1999 第12题)