Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/4
Q:1/8=232
M:4/4
K:G
['d B', 'f g3/2 a/ g e']  
X:1
L:1/4
Q:1/8=232
M:4/4
K:G
|: B | G/A/ B/c/ d B | g B d B | g B d B | a A A B | G/A/ B/c/ d B | g B d B | c A d3/2 c/ | 
 B G G :: f | g3/2 a/ g e | a3/2 b/ a f | g3/2 a/ g e | b e e f | g3/2 a/ g e | a3/2 b/ a f | 
 g d e c | B G G2 :|  