solve problem8