Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/4
M:3/4
K:G
['B2 A G2 B d3 d3 e2', 'g c e g']  
X:1
L:1/4
M:3/4
K:G
 B2 A | G2 B | d3 | d3 | e2 f | g f e | d e d | c B A | B2 A | G2 B | d3 | d3 | e2 f | g a f | g3 | 
 g3 :: B d g | B d g | c e g | c e g | d f a | d f a | g3/2 f/ g/a/ | b2 g | B d g | B d g | 
 c e g | c e g | d f a | d f a | g f/g/ a/f/ | g3 :|  