Solve the following math problem step by step. The last line of your response should be of the form Answer: \boxed{$Answer} where $Answer is the answer to the problem.

<image>Find the perimeter of $\triangle C P D$ if the perimeter of $\triangle B P A$ is 12 $, B M=\sqrt{13},$ and $C N=3 \sqrt{13}$