in a block of flats there are 24 units of 3 types: the luxury unit, the superior unit and deluxe unit.
The luxury can accommodate 8 people, the superior unit can accommodate 7 people and deluxe can accommodate 5 people.
Given that the total number of people living in this block is 160, how many of each type are there?