Instructions:
The table describes the number of passengers entering and leaving at stations A, B, C ... Bus arrives without passengers at the first station. All passengers get off on the last station. We do keep rules of decency - first get off and then get in.
Example
A
B
C
D
E
got off
0 0
2 3
1 2
6 5
8 16
got on
3 5
0 0
in bus
4 8
4 11
altogether
24
Solution
A
B
C
D
E
got off
0 0
2 3
1 2
6 5
8 16
got on
4 8
2 6
8 7
3 5
0 0
in bus
4 8
4 11
11 16
8 16
altogether
12
15
27
24