Xylia has 3 empty bottles X, Y and Z. She poured an equal amount of juice into each of them. After that, 12 of X was filled with juice, 35 of Y was filled with juice and 14 of Z was filled with juice. What is the ratio of the capacity of flask X to flask Y to flask Z?