A ball of mass 800g moving horizontally with a speed of 5m/s hits a vertical…