Ignoring several factors, such as friction, pipe layout, loss of water pressure, and so on, the volume of water flowing through a pipe is related to the cross sectional area of the pipe.
in the case of a 5cm pipe, the area = pi x r2, which is 3.1415 x (2.5cm)2 = 19.6cm2
in the case of a 10cm pipe, the area = pi x r2, which is 3.1415 x (5cm)2 = 78.5cm2
so, the 10cm pipe will carry 78.5/19.6 or 4 times as much water.
so, a pipe of that size could supply 80 houses.