The sample mean x bar = 25 The sample size n = 5 The population standard deviation sigma = 9 The 95% upper confidence bound for the population mean is found from: $xbar+1.96\frac{\sigma}{\sqrt{n}}=25+(1.96\frac{9}{\sqrt{5}})$ This calculates out to the same result as you get.