Can anyone help I have to write an equation a structural formula for a reaction between the following, having some trouble working it out. Hopefully you can understand the way I have put it.

CH2=CH-CH-OH there is a CH3 with single bond under CH next to OH

+

CH3-CH-CH2-C to one side a =O of C
and -OH to other (carboxylic acid) there is also a CH3 with single bond under the CH.

I know the functional groups are alcohol in first group and carboxylic acid in second. I was wondering about the double bonded carbon what role it plays in the equation. I think they go through a condensation reaction to produce H2O and an ester. I am not very clued up on what these compounds are, new to the subject. Can anyone help me to complete the equation and identify the compounds please, would be very grateful for any help I can get guys!

To write the equation and structural formula for the reaction between the two compounds you provided, let's break it down step by step.

First, let's identify the compounds involved:
- The first compound (CH2=CH-CH-OH) is an alcohol, specifically an allyl alcohol.
- The second compound (CH3-CH-CH2-C(=O)-OH) is a carboxylic acid, specifically propanoic acid.

Now, let's proceed with the reaction and the formation of an ester.

The allyl alcohol (CH2=CH-CH-OH) reacts with the propanoic acid (CH3-CH-CH2-C(=O)-OH) in a condensation reaction, where a molecule of water (H2O) is eliminated.

The first step is the removal of the OH group from the carboxylic acid, resulting in the formation of a proton (H+) and an intermediate compound called an acyl group (CH3-CH-CH2-C(=O)-).

The reaction then proceeds with the nucleophilic attack of the carbon-carbon double bond of the allyl group on the acyl group. This leads to the bonding of the two compounds and the formation of a new molecule.

In this case, the final product is an ester called allyl propanoate, with the structural formula CH2=CH-CH-O-C(=O)-CH2-CH3.

The overall equation for the reaction looks like this:
CH2=CH-CH-OH + CH3-CH-CH2-C(=O)-OH → CH2=CH-CH-O-C(=O)-CH2-CH3 + H2O

To review, in this reaction, allyl alcohol and propanoic acid undergo a condensation reaction to produce allyl propanoate and water.

I hope this explanation helps you understand the process and complete the equation. If you have any further questions, feel free to ask!