Note: To answer this question, you will be asked to use the…