Statement 1: Combustion of hydrogen in oxygen results in the formation of water.
Statement 2: Electrolysis of water results in the formation of hydrogen and oxygen gas.
Observe the above statements and identify the types of reaction involved in it.