Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:G
['edBA GEDE G2 BG DGBd eBdB ABGA', 'dega bg g2']  
X:1
L:1/8
M:4/4
K:G
 gf | edBA GEDE | G2 BG DGBd | eBdB ABGA | Beed efgf | edBA GEDE | G2 BG DGBd | eBdB ABGA | 
 Beed e2 :| ge | dega bg g2 | agef gage | dega bg g2 | aged eage | dega bg g2 | agef gfga | 
 bgaf gfed | Beed e2 :|  