Remember your empirical formula is the smallest whole number ratio between the elements of the compound. The molecular formula can be whole number multiples of it.
So you've calculated the empirical formula correctly - C2H4O. Now the RMM of the
empirical formula is 24 + 4 + 16 = 44, but the RMM of the
molecular formula is 88, so we know that the compound's real structure has twice the number of atoms and so we multiply all of the numbers in the empirical formula by 2 to get the molecular formula - C4H8O2, or, butanoic acid.