Look at the picture.
P = 8 + 8 + 9 = 25
[tex] \triangle SRP\cong\triangle LSM\cong\triangle MPN\cong\triangle PMS [/tex]