Particle A moves with constant velocity:
\[
x_A=vt=5t
\]
Particle B starts from rest with acceleration \(2\,ms^{-2}\):
\[
x_B=\frac12 at^2=\frac12(2)t^2=t^2
\]
B overtakes A when:
\[
x_A=x_B
\]
So,
\[
5t=t^2
\]
\[
t(t-5)=0
\]
Ignoring \(t=0\), we get:
\[
t=5\text{ s}
\]
Hence, the correct answer is:
\[
\boxed{(A)\ 5\text{ s}}
\]