input 35 output 21 answer
is there a question here somewhere?
If you already have input and output, what is the answer for?
If you're looking for the function, there are infinitely many:
out = in-14
out = 3/5 * in
out = 4*(in/7) + 1
and so on