4 pipes connecting any 2 pipes on one floor - As there are 6 lines (sides and diagonals) that connect all 4 taps on one floor.
As each line has 4 pipes, pipes connecting taps on one floor = 6*4 = 24
Total Pipes connecting taps on their own floor = 5*24 = 120.
4 pipes connecting any 2 taps on any two floors - Lets calculate how many connections are there between 2 floors.
As each tap connects to the 4 taps above it, there are 4 lines running from each tap to the floor above.
Each line is 4 pipes => each tap has 16 pipes running to each floor.
pipes running out to one floor from another floor = 4 * pipes running from one tap to each floor.
Pipes running from one floor to another floor = 4 * 16 = 64.
Total pipes running between floors (not on the same floor) = 64*4 + 64*3 + 64*2 + 64*1 = 64*(4+3+2+1) = 64*11 = 704
(first floor will connect to the other 4 floors and the second floor will connect to the 3 above it as the connections going down are already counted.)
Total Pipes = 704 + 120 = 824
Pipes burst on one floor = 24 (all the pipes)
Pipes burst goint to another floor = 64*4 = 256 (64 pipes each going to the other 4 floors)
Total Pipes burst = 256+24 = 280.
%pipes burst = (280/824) * 100 = 33.9%
Rounded off to 34 I guess but still not 35 :/
Please tell me where I messed up