Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/4
M:6/4
K:D
['A F G', 'A F']  
X:1
L:1/4
M:6/4
K:D
 A | d e f e2 d | c2 B c A F | G A B A F G | E3 D2 :: D | F A F A F D | G B G A F D | G A B d A F | 
 E3 D2 :|  