Consider the example from Question 6 (repeated below) where…