solved a statistics proplem

personal work by using formals to calculate the statistic questions ,and no copying answers from google .