For given n numbers of data points

The mean value is the sum of all the data points divided by the total number of data points n.
It is formulated as

Given data points are
34 36 32 40 39 17
Here n=6.
Therefore, the mean of hours they worked that week is

Hence, the mean of hours they worked that week is 33 hours.