Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
Q:3/8=90
M:6/8
K:G
['BAG ed^c', 'def gdB ecA']  
X:1
L:1/8
Q:3/8=90
M:6/8
K:G
 g2 d BAG | ed^c (d2 e/f/) | gdB ecA | dBG AFD | gdc BAG ed^c def | gfe afd | ge^c d3 || d2 A FED | 
 BAG ABc | B^c^d efg | ege fdB | eBe fBf | gBg fBf | eBe fga | gaf e3 | g2 d BAG | ed^c def | 
 gdB ecA | dBG AFD | gdc BAG | edc def | gdB ecA | dBF G3 |]  