Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/4
M:4/4
K:G
['d c B', 'G3 B3/2 A/ B d e e']  
X:1
L:1/4
M:4/4
K:G
 d/ d/ | d3/2 d/ d e | e2 e d | c B (A d) | d3 d/ c/ | (B3/2"^(a)" A/) B d | c B A G | 
 F3/2 E/ (F A) | G3 || B3/2 A/ B d |"^(a)" e e d c | B3/2 G/ A A | G2 ||  