Decided to turn the problem into an array, set up the numbers which were the variables in array format.