Since, given data is not continuous, we subtract 0.5 from the lower limit and add 0.5 in the upper limit of each class.
Class markMid−value(xi) Number of days(fi)fixi15.5−18.51711718.5−21.52036021.5−24.52349224.5−27.526923427.5−30.52913377Total 30780
∴Mean(¯x)=∑fixi∑fi=78030=26
Hence, the mean of pages written per day is 26.