If m and n are the mean and median respectively of the set of numbers…