For the general case, it is useful to remember that AY will always be equal to AP. Same observation for BP and BX. It is then obvious that the perimeter of the triangle must be equal to 20 when we reorganize aforementioned segments onto the two long tangent lines.