q5 1st solution
q6 3st sol