Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:G
['d G3 dGBd', 'e dBgB BAAg :|2 bagb afge dBgB'  
X:1
L:1/8
M:4/4
K:G
|: d G3 dGBd | d G2 g edge | d G3 dGBd |1 (3.e.f.g dB BA AB :|2 (3.e.f.g dB BA Ag |: f a2 f g3 e | 
 ded^c defg |1 f a2 f g3 e | dBgB BAAg :|2 bagb afge | dBgB BAAB ||  