Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:6/8
K:D
['F2 G A2 d AGF', 'g a2 g fed B2']  
X:1
L:1/8
M:6/8
K:D
 d3 F2 G | A2 d AGF | G2 d F2 d | e2 d cBA | Td3 F2 G | A2 d AGF | E2 g f2 e | Td3 d2 :: A | 
 d3 g2 g | a2 g fed | B2 B Bcd | efd cBA | d3 f2 g | a2 g fed | B2 g f2 e | Td3 d2 :|  