Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:2/2
K:Gmin
['d2 (BG) ddBG ccAF f2 (=ef) dcBA', 'DGBG dGBG']  
X:1
L:1/8
M:2/2
K:Gmin
|: d2 (BG) ddBG | ccAF f2 (=ef) | dcBA GBdg | dcBA (BG) G2 :: DGBG dGBG | cBAG FGAF |1 DGBG dGBG | 
 dedc BGGF :|2 GABc dcdg | dcBA (BG) G2 |]  