From the geometry:
- Let \( \angle MON = 90^\circ \), and \( OQ \) is the angle bisector.
- So \( \angle NOQ = \angle QOM = 45^\circ \)
- \( OR = 40/\sqrt{7} \), and point \( R \) lies on \( ON \), \( QN = 10 \)
- Drop perpendiculars from \( Q \) to \( OP \), we apply geometry or coordinate/bisection trick.
Using coordinate geometry:
Let \( O = (0,0) \), \( M = (1,0) \), \( N = (0,1) \) so that \( \angle MON = 90^\circ \)
Then \( OQ \) bisects angle \( MON \) and hence lies along \( y = x \), since \( \angle MOX = 45^\circ \)
Unit direction vector of angle bisector: \( \vec{Q} = \frac{1}{\sqrt{2}}(1,1) \)
So \( Q = 10 \cdot \frac{1}{\sqrt{2}} = (5\sqrt{2}, 5\sqrt{2}) \)
Now use triangle similarity / coordinates to solve and compute OP using projection.
After solving, we find:
\[
\boxed{OP = 4}
\]