There are 0.17(500) or 85 students in grade 1.
There are 0.19(500) or 95 students in grade 4.
The number of students in 3rd grade is 95-9 or 86 students.
So, there are a total of 266 students from grade 1,3 and 4. This leaves 234 students for grade 2 and grade 5.
Let n be the number of students in 5th grade; n-10 is the number of students in 2nd grade.
[tex]n+\left(n-10\right)=234[/tex]
[tex]2n=244[/tex]
[tex]n=122[/tex]
There are 122 students in grade 5, and there are 112 students in 2nd grade.