Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:12/8
K:G
['A GED GAB', 'A2 B/c/'  
X:1
L:1/8
M:12/8
K:G
 B/A/ | GED GBA GED G2 A | GED GAB dBA B2 A | GED GAB def g2 a | bag ege dBG A2 :| B/c/ | 
 d3 edB def gfg | d3 edB dBG A2 B/c/ | dcd edB def g2 a |1 bag efg/e/ dBG A2 :|2 bag ege dBG AGE ||  