Acetic acid (CH3COOH) reacts with isopentyl alcohol (C5H12O) to yield the ester isopentyl acetate which has the odour of bananas. If the yield from the reaction is 45%, how many grams of isopentyl acetate are formed when 3.90 g of acetic acid and 6.28 grams of isopentyl alcohol are reacted?

So i found the limiting reagent,Drbob222 said "use that reagent and the number of grams, convert to moles, then convert to moles of the product. That will be the theoretical yield, in moles"
how do i convert the reagent and the number of grams into moles?

thanks

To convert a given amount of a substance from grams to moles, you need to use its molar mass. The molar mass is the mass of one mole of a substance, and it is expressed in grams/mole.

Here's how you can convert the given amounts of acetic acid and isopentyl alcohol into moles:

1. Acetic acid (CH3COOH):
- Determine the molar mass of acetic acid by adding up the atomic masses of each element:
Molar mass = (molar mass of C) + (3 * molar mass of H) + (molar mass of C) + (3 * molar mass of O) + (molar mass of H)
- Look up the atomic masses of carbon (C), hydrogen (H), and oxygen (O), which are approximately 12.01 g/mol, 1.01 g/mol, and 16.00 g/mol, respectively.
- Substitute the values into the formula and calculate the molar mass of acetic acid.
- Divide the given mass of acetic acid (3.90 g) by its molar mass to obtain the number of moles.

2. Isopentyl alcohol (C5H12O):
- Determine the molar mass of isopentyl alcohol in a similar manner as described for acetic acid.
- Divide the given mass of isopentyl alcohol (6.28 g) by its molar mass to obtain the number of moles.

Once you have the number of moles for each reactant, you can proceed to determine the limiting reagent and calculate the theoretical yield.