The perimeter of triangle RXA is 39, PX=49 and AP=9.Find RX and RA.