We have 40 observations with mean 30 and standard deviation 5. Two wrong observations (12 and 10) are removed. We need to find 38σ2 for the remaining 38 observations.
xˉ=30⟹∑xi=40×30=1200
SD=5⟹Var=25
Var=40∑xi2−xˉ2=25
40∑xi2=25+900=925
∑xi2=37000
∑xi′=1200−12−10=1178
∑(xi′)2=37000−144−100=36756
xˉ′=381178=31
σ2=38∑(xi′)2−(xˉ′)2=3836756−961=967.26...−961
Let us compute exactly:
3836756=3836756=967+3810=967+195
σ2=967+195−961=6+195=19114+5=19119
38σ2=38×19119=2×119=238
The correct answer is 238.