'solve' problem 7