Let the two numbers be \( 4x \) and \( 7x \).
When 14 is added to each, the new ratio is given by:
\[
\frac{4x + 14}{7x + 14} = \frac{5}{7}.
\]
Cross multiplying:
\[
7(4x + 14) = 5(7x + 14) \quad \Rightarrow \quad 28x + 98 = 35x + 70 \quad \Rightarrow \quad 7x = 28 \quad \Rightarrow \quad x = 4.
\]
Thus, the two numbers are \( 4x = 16 \) and \( 7x = 28 \).