Start a timer at one end of the school.
Walk at a normal pace to the other end of the school while timing the walk with the timer.
Stop the timer once you reach the other end of the school.
Record the time taken to walk from one end of the school to the other.
Repeat steps 1-4 twenty times.
Calculate the average time taken by adding up the recorded times and dividing by 20.
A loop could show up in step 5, where the process of walking from one end of the school to the other and recording the time is repeated 20 times. This could be accomplished using a for loop in a programming language, where the loop would run 20 times, with each iteration representing a walk from one end of the school to the other.