SOLUTION
The cost per student =$5
Then let the total cost be C(n) and n be the number of students
Then required function is

if the total number of student is 20, n=20
The total cost is

Then the total cost is $130
If the total number of student is 25, then n=25
The total cost becomes
