At the school's annual band concert, 40% of the students were from upper primary and the rest were from lower primary. The entrance fee to the concert for each upper primary student and each lower primary student was $8 and $6 respectively. The total entrance fees collected for all the tickets was $5440. How many students were at the concert?

number from upper primary --- 4x

number from lower primary --- 6x

8(4x) + 6(6x) = 5440
68x = 5440
x = 80

so there were 320 uppers and 480 lowers or a total of ......