Baseball is a sport in which two teams compete against each other on a field. In baseball a player in…