Now take both exercises from the previous questions and list…