The wages of a group of workers in dollars is stated below; 40, 30, 70,…