Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:Amix
['(3AAA ^cA gBcA', 'ae^ca eaca'  
X:1
L:1/8
M:4/4
K:Amix
|: e | (3AAA ^cA gBcA | Bggd BGGB | (3AAA ^cA gBcA | Baae ^cAA :| ^g | ae^ca eaca | Bggd BGGg | 
 ae^ca eaca | Baae ^cAA^g | ae^ca eaca | Bggd BGGg | a^fge fde^c | ^faae ^cA A2 ||  