Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:6/8
K:G
['e e2 e', 'efg g4- g g eee e2 d']  
X:1
L:1/8
M:6/8
K:G
|:"^A" E | G2 G FED | G2 G ABc | B>AG A2 F |1 G4- G :|2 G6 ||"^B" d2 d d2 e | e2 e e2 e | gfg efg | 
 g4- g g | eee e2 d | d2 e d3 | gfg efg | g6 |]  