Let's begin by listing out the information given to us:
Kahlil starts at 1:00 pm
Kahlil drives for 12 minutes at a speed of 35mph; he arrived at 1:12 pm
Kahlil spends 15 minutes at the store; he departed the store at 1:27 pm
Kahlil drives at 40mph till he arrived at school at 1:42 pm; it took him 15 minutes
Kahlil stays at school for 20 minutes to buy tickets
How far is the grocery store from the school in miles is calculated by using the information highlighted above