Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:Amix
['(3GAB =cAAG A2 (3AB^c dcAF G2 (3Bcd', 'eaag a3 g']  
X:1
L:1/8
M:4/4
K:Amix
|: (3GAB | =cAAG A2 (3AB^c | dcAF G2 (3Bcd | edcA dcAG | A3 G A2 de | f3 d e3 c | d2 (3Bcd efge | 
 aged =cAGB | A3 G A2 :: ef | g3 f gfef | g3 a gedg | eaag a3 g | eaag a3 g | f3 d e3 c | 
 d2 (3Bcd efge | aged =cAGB | A3 G A2 :|  