CH3COOH has 24 valence electrons. Because Carbon atom has 4 valence electrons while Hydrogen has 1 and Oxygen has 6 valence electrons. Total valence electrons of CH3COOH is (4*2)+(1*4)+(6*2) = 24.