The chemical equation for the electrolysis of water is:
2H2O(l)→2H2(g)+O2(g)
Its evident from the equation that water contains two parts of hydrogen and one part oxygen. Therefore, during the electrolysis of water the amount of hydrogen gas collected in one of the test tubes is double than that of the oxygen produced and collected in the other test tube.