solution to problem 130