solved problem 42