The waves are partially reflected when they meet a boundary between two materials and the time taken for the reflected waves to reach a detector can be used to determine how far away the boundary is.This is then processed by a computer to show a video image of the foetus
When high frequency sound waves are used to detect objects in deep water and measure water depth.divide the time or distance by 2 when working it out as that's the time/distance taken for there ands back