find how many students left:
40-28 = 12 left
divide number of students that left by the amount of time :
12 / 3 = 4 students left per second
because the class room got smaller ( students left, the rate in the class room is declining so the answer would be a negative number)
answer is -4 students per second