\[x_{1} = 3;\ \ x_{40} = 57:\]
\[S_{40} = \frac{a_{1} + a_{40}}{\mathbf{2}} \cdot 40 =\]
\[= (3 + 57) \cdot 20 = 60 \cdot 20 = 1200.\]
\[Ответ:1200.\]