Step 1: Determine the image formed by the divergent lens.
The divergent lens has focal length
\[
f_1=-15\,\text{cm}.
\]
A parallel beam incident on a diverging lens appears to diverge from its principal focus.
Hence the image formed by the first lens is a virtual image at
\[
15\,\text{cm}
\]
to the left of the divergent lens.
Step 2: Find the object distance for the convergent lens.
The convergent lens is placed
\[
40\,\text{cm}
\]
to the right of the divergent lens.
Therefore, the virtual image formed by the first lens is at a distance
\[
40+15=55\,\text{cm}
\]
to the left of the convergent lens.
Thus, for the convergent lens,
\[
u=-55\,\text{cm}.
\]
Step 3: Use the condition for parallel emergent rays.
The rays emerging from the convergent lens are parallel.
Therefore, the object for the convergent lens must lie at its first focal point.
Hence,
\[
u=-f_2.
\]
Therefore,
\[
f_2=55\,\text{cm}.
\]
Step 4: Final conclusion.
Thus, the focal length of the convergent lens is
\[
\boxed{55\,\text{cm}}
\]