One example in Maronna, Martin and Yohai's Robust Statistics (2006, p.2) is as follows. Given 24 measurements of certain quantity (see below) and their sample mean 4.28 and sample standard variation 5.30. They claim that 95% confidence interval based on the $t$-distribution is (2.05, 6.51).
This might be a very easy question. However, I still do not see how to get the claimed interval. In addition, How to decide the degree of freedom of $t$-distribution?
Data: 2.20, 2.20, 2.40, 2.40, 2.50, 2.70, 2.80, 2.90, 3.03, 3.03, 3.10, 3.37, 3.40, 3.40, 3.40, 3.50, 3.60, 3.70, 3.70, 3.70, 3.70, 3.77, 5.28, 28.95.