\
Length of the rope is
ft.
Observe the figure
.

Consider
and
.
Assume
and
.
Cart A is being pulled away from
at a speed of
ft/s.
ft/s.
From the figure ,
.
.
\
Apply Pythagorean theorem to
.

.
Apply Pythagorean theorem to
.
.
.
Substitute
,
in
.
.
Differentiate on each side with respect to
.
.
Cart A is
ft from point
.
That is
.
Substitute
in
.

Substitute
,
and
in
.

Here, the negative sign indicates distance is decreasing.
\Cart B moving towards
at
ft/s.
\
Cart B moving towards
at
ft/s.