the following flow diagram shows the various steps of elimination…