A cannon is fired from town X,after how long is the sound heard at a…