Given the information on the table, we can find the mean by multiplying each number of families by their respective consumption, and then dividing by the sum by the total number of families (in this case, there are 37 families):
therefore, the mean number of gallons consumed is 4.7