number of tickets sold for:
floor = F
lower = L
upper = U
F + L + U = 15,000 (1)
and
80F + 65L + 45U = 877,500 (2)
L = 5F (3)
write (3) in (1) for L
F + 5F + U = 15,000
U = 15,000 - 6F (4)
write (3) and (4) in (2) for L and U
80*F + 65*5*F + 45*(15,000 - 6*F) = 877,500
80F + 325F + 675,000 - 270F = 877,500
135F = 202,500
F = 1,500
L = 5F = 5*1,500 = 7,500
U = 15,000 - 6F = 15,000 - 6*1,500 = 6,000