In computing the mean of 8 numbers, a boy mistakenly used 17 instead of 25…