Figure 2:
Solution algorithm.