A container has 30 gold medals, 22 silver medals and 18 bronze medals. If one…