solve problem 137