The total number of students is 6 plus x plus y plus 6, which simplifies to x plus y plus 12, and since there are 28 students, x plus y equals 16. Using the step-deviation method for the mean, the sum of the midpoints multiplied by their frequencies is (5 times 6) plus (15 times x) plus (25 times y) plus (35 times 6), equaling 30 plus 15x plus 25y plus 210. Because the overall mean is 20 across 28 students, the total sum must be 560, so 240 plus 15x plus 25y equals 560; dividing by 5 gives 3x plus 5y equals 64. Solving the system where x plus y equals 16 and 3x plus 5y equals 64 results in x equaling 8 and y equaling 8, making their difference 0.