Calculated the average of the time inputs and saved it as a variable averageTime.