Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
['G,A,B,D EA, A,2 DGGD', 'gfga bgag'  
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
 G2 FG (3EFG DB, | G,A,B,D EA, A,2 | DGGD EGaf | gedc BdAF | G2 BG EGDB, | G,A,B,D EA, A,2 | 
 DGGD EGef | gedc BG G2 || gfga bgag | gabg eaaf | gfga bgag | (3efg dc BG G2 | gfga bgag | 
 gabg eaaf | gabg gedc | Baag (3efg dB |]  