Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:9/8
K:G
['BDE GAB c2', 'cBA G3 gaf gdc BGg gag'  
X:1
L:1/8
M:9/8
K:G
 BDE GAB c2 A | B2 G gag fdc | BDE GAB c2 B | AA/A/A ded cBA | BDE GAB c2 A | B2 G gag fdc | 
 Bcd e/f/ga de/f/g | f2 d ded cBA || G3 gaf gdc | BGg gag fdc | Bcd e/f/ga de/f/g | f2 d ded cBA | 
 G3 gaf gdc | BGg gag fga | bc'b agf gfd | fed cde fdc ||  