1999 AIME Problem 12

The inscribed circle of triangle A B C is tangent to \overline{A B} at P, and its radius is$21$Given that A P=23 and P B=27, find the perimeter of the triangle.