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