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
4 1
1 4
got on
1 2
2 4
0 0
in bus
4 7
0 12
2 15
altogether
Solution
A
B
C
D
E
got off
0 0
4 1
1 4
0 1
2 15
got on
4 7
1 2
0 8
2 4
0 0
in bus
4 7
1 8
0 12
2 15
altogether
11
9
12
17