solve question 9, thank you nixstix