mean = sum of x/n
so sum of x = n x mean
14x 31.2 =436.8
adding the new student means that sum of x is now 436.8 + 42 = 478.8
therefore, new mean = sum of x/n
478.8/15 = 31.92
for the standard deviation, for the original class:
(standard deviation is the square root of variance)
σ2 = Σx2/n – mean2
7.42 = Σx2/14 – 31.22
rearrange that to get Σx2 = 14394.8
then, adding in the new student:
14394.8 + 422 = 16158.8 (this is the new Σx2)
therefore, the new standard deviation is the square root of:
16158.8/15 – 31.922