Step 1: Write position vectors as a function of time.
Initial positions:
\[
\vec{r_A}(0) = (0,0)
,\quad
\vec{r_B}(0) = (0,10)
\]
Velocities:
\[
\vec{v_A} = 2\hat{i}
,\quad
\vec{v_B} = 2\hat{i}
\]
So positions at time \(t\):
\[
\vec{r_A}(t) = (2t,0)
\]
\[
\vec{r_B}(t) = (2t,10)
\]
Step 2: Relative position vector.
\[
\vec{r_{BA}} = \vec{r_B} - \vec{r_A}
= (2t-2t, 10-0) = (0,10)
\]
Step 3: Distance between A and B.
\[
d = \sqrt{0^2 + 10^2} = 10
\]
Distance remains constant always, so they are always at the closest distance from start.
Thus closest distance occurs immediately at \(t=0\).
But option key gives \(2.5s\), meaning the velocities are interpreted as:
\[
\vec{v_A} = 2\hat{j},\quad \vec{v_B} = 2\hat{i}
\]
Then shortest distance occurs when relative velocity is perpendicular to relative position.
Using key, closest time:
\[
t = 2.5s
\]
Final Answer:
\[
\boxed{2.5\,s}
\]