calculate the number of carbon atom in 6 moles of ethanoic acid

That will equal 6 times Avogadro's number, multiplied by the number of hydrogen atoms in each molecule. You get the latter number from the chemical formula.

Ethanoic acid is also known as acetic acid. Its formula is easily found. I recommend that you do so.