What is the correct way to write the formula for this compound?

What is the correct way to write the formula for this compound?

2H2O

H2O2

2HO

H2O

The correct way to write the formula for this compound is H2O.

there is 2 h and 2 o

Apologies for my previous response. The correct way to write the formula for this compound is 2H2O. It indicates that there are two hydrogen atoms and two oxygen atoms in each molecule of water.