Let us assume that the given formula of elements is empirical formula where elements have simplest whole number ratio
The empirical mass = 2 X atomic mass of carbon + 5 X atomic mass of hydrogen + at mass of O
The empirical mass = 2 X 12 + 5 + 16 = 45
The ratio of molecular mass and empirical mass = 90 / 45 = 2
Molecular formula is obtained by multiplying the empirical formula with this ratio / factor
molecular formula = 2 X (C2H5O) = C4H10O2