Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:6/8
K:G
['AGA GAG GBd', 'g2 d efg fga ded dcB edc']  
X:1
L:1/8
M:6/8
K:G
 d/c/ | BcB AGA | GAG GBd | edd gdB | BAG A2 d/c/ | B2 B AGA | GAG GBd | e>fg faf | gag g2 :: d | 
 efg fga | ded dcB | edc BAG | BAG A2 d/c/ | BcB AGA | GAG GBd | e>fg faf | gag g2 :|  