The title was hard to put out in enough detail for someone to click but essentially the problem is this. A user enters the amount of students they have
Pictured is how it works essentially: 
Ignore the outputs under each input, thats my testing, it then prints out the average for each student.
What I need is to get the average of each test, a test is the input line, aka 10,12 is test 1 and 11,13 is test 2 and I would print the averages
I have Objects for Test and Student and have finally managed to get the student items printing averages but not the Tests as i am not sure how to get the first of each line.
