There's no point in calling that distance x, since it is known (50 km). Also, adding the ships' speeds doesn't do you any good, since they are moving opposite directions on different tracks.
At any time t after 9:00AM, ship A will be 30t (km) south of its starting point, and ship A will be 40t (km) north of its starting point. Call the distance between the two ships D1 + D2, where D1 is the length of the hypotenuse of the left triangle (with vertices ship B, its starting point, and a point on the line connecting the two starting points) and D2 is the hypotenuse of the right triangle (with vertices ship A, its starting point, and a point on the line connecting the two starting points).
The two triangles are not congruent, because the ships are going different speeds, and the straight line between ships A and B does not hit the midpoint of the line that joins the two starting points. However, even though the triangles have different sizes, they are similar, meaning that their corresponding sides are proportional.
Use this information to identify all three sides of each triangle at any time after 9AM, and find d/dt(D1 + D2) at 12:00 noon.