solve problem41