solve problem42