The mean is the sum divided by the count. For exact values with frequencies, use \(\bar x=\sum f_ix_i/\sum f_i\).
For an odd count take the middle value. For an even count average the middle two. In a frequency table, use cumulative frequencies to locate those positions.
The mode is a value with the highest frequency. Two different values may tie for the highest frequency. For grouped data, a modal class is an interval, and an estimated mode requires assumptions within classes.