(b) (i) The total number of ways to arrange 8 people (5 boys and 3 girls) is \(8!\):
\(8! = 40320\)
(ii) Treat the 5 boys as a single unit. This gives 4 units to arrange (3 girls + 1 unit of boys). The number of ways to arrange these 4 units is \(4!\). Within the boys' unit, the 5 boys can be arranged in \(5!\) ways. Therefore, the total number of arrangements is: