Given:
Distance of A from cliff =x
Distance of B from cliff =y
B hears the first shot after 2 s,
and the second shot after 3 s
Speed of sound =320 m/s
We know,
Speed=DistanceTime
The person B hears two versions of the fired shot, one directly from the gun and another after reflection from the cliff.
When sound reached B directly:
Distance travelled by the sound = y - x
.'. 320=y−x2⇒y−x=640 ----(1)
When sound reached B after reflection:
Distance travelled by the sound = y + x
.'. 320=y+x3⇒y+x=960 ----(2)
From equation (1) and (2),
y - x = 640
y + x = 960
Upon solving, we get
y = 800 m, x = 160m