What mass of a divalent metal M (atomic mass = 40) would react with excess…