I'm sorry for this low level question, since i would really like to become a data scientist i study everyday math from the very beginning, i learn through khan academy and everything was fine since i started until this question i can't really well visualize
Of course they give the answer at Khan Academy but i can't visualize at all, so i would like to know if anyone can explain me the answer by himself so maybe i would understand it better than by the video
Thank you.

The distance to the store is $8\times0.75=6$ miles. Therefore, the total distance travelled is $12$ miles. The time the journey back takes is $6/24=0.25$ hours (i.e. $15$ minutes).
The average speed is $$\frac{\text{distance}}{\text{time}}=\frac{12}{0.75+0.25}=\frac{12}{1}=12 \text{ mph}.$$