In order to solve this problem, first we need to know that 1 pint is equal 16 fluid ounces.
So, converting 4 fluid ounces to pints, we have:

So each student uses 1/4 pint. There is a total of 60 students, so the teacher will use a total of:

Since the teacher has 18 pints, there will be left 18 - 15 = 3 pints.