If there are 25 students, and every student gives a chocolate to 5 other students and every student received a chocolate from exactly the 5 students they've sent chocolate to, that means that each student exchanged chocolates with 5 other students. That means, we can construct a graph, where each student is a vertex and each pair of students, that has exchanged chocolates is bound by an edge. In that case, the degree of each vertex is 5. And from this fact we can conclude, that the sum of degrees of all vertices is 125. On the other side, according to the Handshaking Lemma, if n is the number of edges of the graph, the sum of degrees of all vertices is 2n. That means, it is even. But 125 is odd. It is a contradiction. And that means, that if there are 25 students, and every student gives a chocolate to 5 other students, it is impossible for every student to receive a chocolate from exactly the 5 students they've sent chocolate to.