Construct a musical composition following the designated musical form and incorporating the given motif.
X:1
L:1/8
M:4/4
K:A
['a2 ec defg afec', 'c2 cA'  
X:1
L:1/8
M:4/4
K:A
 g | a2 ec defg | afec dBBg | a2 ec defg | afec (3AAA Ag | a2 ec defg | afec dBBg | a2 ec defg | 
 afec (3AAA AB || c2 cA d2 dB | efec dBBd | c2 cA defg | afec A2 AB | c2 cA d2 dB | efec dBBd | 
 ceae defg | afec A2 A ||  