Given that B = Births D = Death X = Emigrants M = Immigration The…