The students' entrance fee cost $5 x 35 = $<<5*35=175>>175.
The adults' entrance fee cost $6 x 4 = $<<6*4=24>>24.
Therefore, the school will pay a total of $175 + $24 = $<<175+24=199>>199 for the farm entrance.
#### 199