The sum of the first \( n \) terms of an arithmetic progression, denoted \( S_n \), is calculated using the formula: \[ S_n = \frac{n}{2} (2a + (n - 1) d), \] where \( a \) represents the first term and \( d \) is the common difference. Given \( S_{40} = 1030 \) and \( S_{12} = 57 \), we can determine the values of \( a \) and \( d \). Subsequently, we will compute \( S_{30} - S_{10} \) using the established formula.
Final Answer: \( S_{30} - S_{10} = 510 \).