Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:A
['E2 AE', 'gAeA dfed cABc']  
X:1
L:1/8
M:4/4
K:A
 E2 AE GABc | A^de=d cAAF | E2 AE GA B2 | B3 d cAAF | E2 AE GABc | A^de=d cAAF | E2 AE GA B2 |1 
 B3 d cAAF :|2 B3 d cA | AB ABce || a3 a a2 ga | bAaA gAeA | dfed cABc | defa agfe | a3 a a2 ga | 
 bAaA gAeA | dfed cABc | dcBc BA A2 :|  