This is a sum and difference problem, with the equations
R-N=35
R+N=635
The solution of which is
R=(635+35)/2=335
N=(635-35)/2=300
In general, the sum and difference problem can be solved (most of the time mentally) using
Larger number = (sum + difference)/2
Smaller number = (sum - difference)/2