During the Electrolysis of water, hydrogen and oxygen is get separated by the electricity. Water (H2O) contains two parts hydrogen and one part oxygen. Since hydrogen goes to one test tube and oxygen goes to another, the amount of gas collected in one of the test tubes is double of the amount collected in the other.