let's connect 2 houses (H1 H2) to all resources (each one of the three fountains - F1 F2 F3)

It doesn't matter the position of the three fountains. When you "fully connect" 2 houses, you block one fountain.
I think this type of problems can be studied with Graph Theory - networks.