Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:6/8
K:G
['D GBd gfg edc BAG GBd efg', 'G2 A BBB cBc dBG (A2 G)'  
X:1
L:1/8
M:6/8
K:G
|: D | GBd gfg | edc BAG | GBd efg | fdd def | G>ag gdB | cde dBG | GBd cAd | BGG G2 :: A | 
 BBB cBc | dBG (A2 G) | GBd efg | afd def | G>ag gdB | cde dBG | GBd cAd | BGG G2 :|  