1. Click on the green flag. The rest of the instructions are in the project. :)
I'd like to thank my math teacher for challenging me and giving me this problem to solve.