I am attaching an image with the two solutions represented by the blue areas highlighted in your original graphs. Let me know if you have questions.
6.2m questions
8.1m answers