The formula of a compound formed in a reaction between a trivalent metal M and…