I wonder why this post is voted to close as off-topic when the one who posted the question has mentioned the source of the problem which contains both the answer and the question, and the intention of the poster is to improve his understanding of how the problem is solved - clearly indicating it is not a homework question and the intention of the poster is not to cheat but to understand.
How do we find pareto optimal points in a 2 goods simple exhange economy?