Step 1: Represent the vectors in component form.
Let the magnitude of \(\vec{P}\) be \(P\).
Since \(\vec{P}\) is along the \(x\)-axis,
\[
\vec{P}=(P,0).
\]
Let
\[
\vec{Q}=(Q_x,Q_y).
\]
Given,
\[
|\vec{Q}|=10.
\]
Hence,
\[
Q_x^2+Q_y^2=100.
\]
Step 2: Use the condition that the resultant is along the \(y\)-axis.
The resultant is
\[
\vec{R}=\vec{P}+\vec{Q}.
\]
Since \(\vec{R}\) is directed along the \(y\)-axis, its \(x\)-component must be zero.
Therefore,
\[
P+Q_x=0.
\]
Thus,
\[
Q_x=-P.
\]
Step 3: Use the magnitude of the resultant.
The resultant is along the \(y\)-axis, so
\[
|\vec{R}|=|Q_y|.
\]
Given that the magnitude of the resultant is twice that of \(\vec{P}\),
\[
|Q_y|=2P.
\]
Hence,
\[
Q_y^2=4P^2.
\]
Step 4: Use the magnitude of \(\vec{Q}\).
Substituting
\[
Q_x=-P
\]
and
\[
Q_y^2=4P^2
\]
into
\[
Q_x^2+Q_y^2=100,
\]
we get
\[
P^2+4P^2=100.
\]
\[
5P^2=100.
\]
\[
P^2=20.
\]
\[
P=\sqrt{20}=2\sqrt{5}.
\]
Step 5: Final conclusion.
Therefore, the magnitude of \(\vec{P}\) is
\[
\boxed{2\sqrt{5}\,\text{m}}
\]