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
0 3
5 1
3 5
11 8
got on
3 8
0 0
in bus
2 3
8 1
altogether
19
Solution
A
B
C
D
E
got off
0 0
0 3
5 1
3 5
11 8
got on
2 3
6 1
8 5
3 8
0 0
in bus
2 3
8 1
11 5
11 8
altogether
5
9
16
19