solve Problem9