Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:12/8
K:G
['d2 B', 'g f2 a']  
X:1
L:1/8
M:12/8
K:G
|: ge | d2 B BAB g2 e f2 e | d2 B BAB e3 efe | d2 B BAB g2 e f2 e | d2 B ABA G3 G :: z g | 
 f2 a e2 g f2 a efe | d2 B BAB e3 e2 g | f2 a e2 g f2 a efe | d2 B ABA G3 G :|  