Final answer:
The number of empty carriages is 1 and the number of empty seats across all the other carriages is 40.
Step-by-step explanation:
To find the number of empty carriages, we need to calculate the total number of carriages and subtract the number of filled carriages. Each train has 20 carriages, so the total number of carriages for all the trains is 400000 / 20 = 20000 carriages. If all the empty seats are on the last train, then the number of filled carriages is 20000 - 1 = 19999 carriages. Therefore, the number of empty carriages is 20000 - 19999 = 1 carriage.
To find the number of empty seats across all the other carriages, we need to calculate the total number of seats and subtract the number of filled seats. Each carriage has 40 seats, so the total number of seats for all the carriages is 20 * 40 = 800 seats. If all the empty seats are on the last train, then the number of filled seats is 800 - 40 = 760 seats. Therefore, the number of empty seats across all the other carriages is 800 - 760 = 40 seats.