There was an equal amount of water in Cylinder X and Cylinder Y. When 5 similar marbles were added into Cylinder X, the water level in Cylinder X read 185 ml. When 9 such marbles were added into Cylinder Y, the water level in Cylinder Y read 245 ml. How much water was initially in each cylinder?