Figure 1:
Diagram of the desired solution.