\(AM=\bar x=\frac{\sum x}{n}\)
If there are frequencies or weights
\(\bar x=\frac{\sum f_i x_i}{\sum f_i} \space or \space \frac{\sum w_i x_i}{w_i=n}\)