Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:2/4
K:D
['f3 e dc BA cB/B/ BB', 'd d |[K:G] gB/B/ dg fe e2']  
X:1
L:1/8
M:2/4
K:D
 A | dA dA | f3 e | dc BA | cB/B/ BB | eB eB | g3 f | ed cB | Aa/a/aA | dAdA | f3 e | dc BA | 
 cB/B/ BB | ef ga | b3 a | ag Bc | dd/d/ d :: d |[K:G] gB/B/ dg | fe e2 | c/A/F/A/ cf | ed d2 | 
 bB b/a/g/f/ | fe c'2 | a/g/f/e/ d/c'/b/a/ | gg g :|  