Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:2/4
K:G
['B2 A2', 'd2 c2 Bg e2']  
X:1
L:1/8
M:2/4
K:G
|: B2 A2 | Gc B2 | AG FG | B2 A2 | B2 A2 | Gc B2 | Ad d^c | d4 :: d2 c2 | Bg e2 | d2 c2 | Bg e2 | 
 dG c2 | BF Gc | B2 A>G | G4 :|  