Step 1: Write each distance.
Body B moves steadily: $x_B=Vt$. Body A speeds up from rest: $x_A=\frac{1}{2}at^2$.
Step 2: Set them equal at meeting.
They start together and meet again, so $\frac{1}{2}at^2=Vt$.
Step 3: Cancel $t$ and solve.
Dividing by $t$, $\frac{1}{2}at=V$, so $t=\frac{2V}{a}$. \[ \boxed{\frac{2V}{a}} \]