Solve first two tests.