How is 21 is the ratio of 10.5

ratios are written with the : symbol

I guess you meant:
How is 2:1 the ratio as 10:5

well...
10:5 = 5*2 : 5*1
= 2 : 1
or
10:5 ----> 10/5 = 2/1 ----> 2 : 1