Three containers A, B and C are having mixtures of milk and water in the ratio of 1:5, 3:5, 5:7 respectively. If the capacities of the containers are in the ratio 5:4:5, find the ratio of milk to water, if all the three containers are mixed together.