Answer:
The first case is an SN2 reaction while the second case is an SN1 reaction
Explanation:
In the first case, what we have is an SN2 bimolecular reaction. It should be recalled that sodium ethoxide is a strong nucleophile. Strong nucleophiles lead to SN2 substitution in secondary alkyl halides where SN1 or SN2 mechanisms are probable. The observed mechanism now depends on the actual nucleophile used in the reaction. Since a strong nucleophile is used, 3-ethoxy-1-pentene is obtained as shown in the image attached to this answer.
In the second case, a weaker nucleophile, ethanol is used. The use of a weak nucleophile leads to an SN1 mechanism. The 3-Chloro-1-pentene forms a secondary carbocation as shown in the image attached. This secondary carbocation can re-arrange itself to give the two products; 3-ethoxy-1-pentene and 1-ethoxy-2-pentene as shown in the reaction mechanism in the image attached. The structure of the contributor leading to the formation of 3-ethoxy-1-pentene is clearly shown in the image attached.