Relative velocity and motion along a straight line: When two objects are moving along the same line, their relative velocity is the difference between their velocities. The distance covered by an object moving at a constant velocity is the product of its velocity and the time of travel.
To find the torpedo's speed, we first determined the relative speed between the torpedo and the enemy ship, then calculated the total distance the torpedo traveled, and finally divided this distance by the time it took to hit the target.