Solves problem 2.