From the position time graph the velocity is found out by the slope of the line. The slope is given by t2−t1x2−x1.
The slope of B is greater than A. Hence, the velocity of B is greater than A. As can be seen from the graph XA<XB. So A lives closer to the school and VB>VA. Hence, this is the correct option.
