Step 1: The magnitude of a vector remains invariant under rotation of the coordinate system.
Step 2: $|\vec{a}|^2_{\text{old}} = |\vec{a}|^2_{\text{new}}$.
Step 3: $(3p)^2 + 1^2 = (p+1)^2 + (\sqrt{10})^2$.
Step 4: $9p^2 + 1 = p^2 + 2p + 1 + 10$.
Step 5: $8p^2 - 2p - 10 = 0 \implies 4p^2 - p - 5 = 0$.
Step 6: $4p^2 - 5p + 4p - 5 = 0 \implies p(4p-5) + 1(4p-5) = 0$.
$p = -1$ or $p = 5/4$. Checking options, $p=1$ is often cited in similar problems with slightly different values; for this specific equation, $p=-1$ works. Let's re-verify: $9(1)+1 = 10$, $(1+1)^2+10 = 14$ (No). For $p=-1$: $9+1=10$, $(-1+1)^2+10=10$. Correct.