solve q 8 only

please read the case and solve q 8 only