Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:G
['B3 d cBAG', 'cBAG d4 cBAG EFGB A3 G |1']  
X:1
L:1/8
M:4/4
K:G
 GA | B3 d cBAG | B3 d cBAG | EFGB A3 G |1 FGEF D2 :|2 G6 :: Bc | d3 d cBAG | d4 cBAG | 
 EFGB A3 G |1 FGEF D2 :|2 G6 :|  