The ratio of teacher to student is equivalent so teacher to the student ratio is same for all the school A, B, C and D.
Equate the teacher to school ratio for school A and school C to obtain the number of teachers in school C.

The number of teacher is school C is 25.
Equate the teachers to students ratio for the school A and school D to obtain the number of students in school D.

The number of students in school D is 792.