Since \( y \) varies directly with \( x \), we can express this relationship as:
\[ y = kx \]
where \( k \) is the constant of proportionality. To find \( k \), we can use the values provided: \( y = 35 \) when \( x = 5 \).
Substituting these values into the equation gives us:
\[ 35 = k \cdot 5 \]
To solve for \( k \), divide both sides by 5:
\[ k = \frac{35}{5} = 7 \]
Thus, the constant of proportionality \( k \) is:
\[ \boxed{7} \]