In an arithmetic progression, the sum of the first \( n \) terms is given by the formula: \[ S_n = \frac{n}{2} (2a + (n - 1) d), \] where \( a \) is the first term and \( d \) is the common difference. We are given \( S_{40} = 1030 \) and \( S_{12} = 57 \).
From these, we can solve for \( a \) and \( d \). Then, we calculate \( S_{30} - S_{10} \) using the same formula.
Final Answer: \( S_{30} - S_{10} = 510 \).