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.
I got this because Kira is x-8 and Ryan is 4x. 4x-x-8=112 is equal to 5x=120. So x=24.Kira has 16 when plugging in x and Ryan has 96 because 4 times 24 is 96.