Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
Q:3/8=120
M:6/8
K:G
['B2 G GBG dBG Bcd efg', 'afd efg'  
X:1
L:1/8
Q:3/8=120
M:6/8
K:G
 c | B2 G GBG | dBG Bcd | efg dBd | ecA A2 d | B2 G GBG | dBG Bcd | efg deg | dBG G2 :| d | 
 gdg gbg | gbg afd | efg dBd | ecA A2 f | gdg gbg | gbg afd | efg dBg | dBG G2 d | gdg gbg | 
 gbg afd | efg dBd | ecA A2 f | gdg bag | fed afd | efg dBg | dBG G2 |]  