First you add the number of games bought for each classroom (3+4+1 = 8) then you multiply it by the number of classrooms (8*6 = 48) then you get your answer.
A negative times a negative results to a positive number, but when two negative numbers are added to each other, it still results to a negative number.