Recall that the sample mean \( \bar{x} \) is calculated by summing all the data points and then dividing by the number of data points.
Write the formula for the sample mean:
\[ \bar{x} = \frac{\sum_{i=1}^n x_i}{n} \]
where \( x_i \) are the data points and \( n \) is the number of data points.
Calculate the sum of the data points:
\[ 4 + 7 + 9 + 10 + 12 \]
Count the number of data points, which is 5, and then divide the sum by 5 to find the sample mean.