When you are calculating variances (or comparing actual to budget) for variable costs it is normal to flex the budget to the actual activity level.
There is little point calculating the costs based on budgeted numbers of students if the actual number is higher as higher numbers will inevitably push up the variable costs.