What mass of magnesium would be obtained by passing a current of 2 amperes for…