Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:2/2
K:Amix
['A2 (3AAA', 'dBGB =cg g2'  
X:1
L:1/8
M:2/2
K:Amix
 A2 (3AAA cdec | ABce dBGB | A2 (3AAA cdeg | afge dBGB :: =cg g2 afge | =cege dBGB | =cg g2 afgb | 
 afge dBGB :|  