Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:G
['G G A B c d2 G', 'f g'  
X:1
L:1/8
M:4/4
K:G
 G | G A B c d2 G G/ G/ | G g g f e3 d | g b a g ed e g | d B A G A3 |] B/ B/ | c B c d e2 e f | 
 g f g a{g} f2 d d | b a g f e/ f g2 g/ g/ | d B A B G3 |]  