Did you, at any time, actualy write down:
y = 20/x
??
You have demonstrated nicely why showing your work is important. You said you "divided 20 into 2", but that cannot be what you did. Nevertheless, you managed the correct result, x = 10.
If you deliberately write down the equation, if you deliberately and carefully substitute the known value, if you then deliberately and consistently solve for the remaining value, THEN one can know of assurety one of two things, 1) The answer is correct, or 2) We can go back and figure out where we went wrong.