To subtract the fractions \( \frac{5}{7} \) and \( \frac{2}{5} \), we first need to find a common denominator. The least common multiple (LCM) of 7 and 5 is 35.
Now, we convert each fraction to have this common denominator:
\[ \frac{5}{7} = \frac{5 \times 5}{7 \times 5} = \frac{25}{35} \]
\[ \frac{2}{5} = \frac{2 \times 7}{5 \times 7} = \frac{14}{35} \]
Now we can subtract the two fractions:
\[ \frac{25}{35} - \frac{14}{35} = \frac{25 - 14}{35} = \frac{11}{35} \]
So, \( \frac{5}{7} - \frac{2}{5} = \frac{11}{35} \).