A charged particle $Q$ centers a region of uniform magnetic field $\vec B=B\hat x$ at the origin, moving in the positive $z$-direction. It follows a circular arc of less than $\frac{\pi}{2}$ and is observed later at $\vec r= a \hat{x}+ b\hat{y}$. Find the momentum of this particle.
I derived $p=qBr$ from the centripetal force and Lorentz force equations.
I'm having trouble identifying $r$. I was thinking of using a triangle and therefore
$$\tan\frac{\pi}{2}= \frac{\sqrt{a^2+b^2}}{r}$$
but that doesn't seem correct as it would end up being undefined.
I was also thinking of taking the limit as the angle approaches pi/2 but then r would approach 0.
Besides these, I'm fresh out of ideas
Any help or hints are greatly appreciated!