{\displaystyle S_{c}=\sum _{i=1}^{n}S_{i}={\frac {1}{2}}\sum _{i=1}^{n}(a_{i}+b_{i})h_{i}.}