Please help ASAP! If correct will mark brainliest

Answer:
5
Step-by-step explanation:
We need to find the value of AP
First, lets compare the perimeters:
Sum of the perimeters of smaller triangles:
As BP+PC= BC we can put it as:
and
Plug in values of perimeters:
Answer is: 5