A batter receives an RBI when their action results in the scoring of a run.…