J.R. S. answered 02/29/20
Ph.D. University Professor with 10+ years Tutoring Experience
Assuming 100 g of the sample, the % values then become grams.
40.92 g C x 1 mol C/12.01 g = 3.407 moles C
4.58 g H x 1 mol H/1.008g = 4.544 moles H
54.50 g O x 1 mol O/15.99 g = 3.408 moles O