B lives nearer to school than A because
Since, it is given that, A’s home distance from school: B’s home distance from school $$ = 2: 1 $$
(A’s home distance from school) / (B’s home distance from school) $$ = \dfrac{2}{1} $$
Hence, A’s home distance from school $$ = 2 \times $$ B’s home distance from school