Teaching loops and efficiency

I have been using the loops and to some point its been just guesing