We need to set up a system, rather than a single equation, because there are two variables involved.
The first equation represents the fact that the two numbers are in a 3:2 ratio:
[tex]\dfrac{x}{y}=\dfrac{3}{2} \iff x=\dfrac{3}{2}y[/tex]
The second equation represents the fact that their sum is 35:
[tex]x+y=35[/tex]
So, we have the following system:
[tex]\begin{cases}x = \dfrac{3}{2}y\\x+y=35\end{cases}[/tex]
Using the expression for x in the first equation, the second one becomes
[tex]x+y=35 \iff \dfrac{3}{2}y+y=35 \iff\dfrac{5}{2}y=35 \iff 5y=70 \iff y = 14[/tex]
which implies
[tex]x=35-y=35-14=21[/tex]