Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:2/2
K:G
['ef gfga g2 [dg]2 [ee]4 [ee]3 g-', '[G,D]EGA BGAG E'  
X:1
L:1/8
M:2/2
K:G
 ef | gfga g2 [dg]2 | [ee]4 [ee]3 g- | gabg egdg | [dg]6 ef | gedB AGED | E [AA]2 [AA] [AA]4 | 
 ABAG EDEF | G G3- G2 :: [G,D]2- | [G,D]EGA BGAG | E A2 A A4 | ABAG EDEF | G6 D2- | [G,D]EGA BGAG | 
 E [AA]2 [AA] [AA]4 | ABAG EDEF | G6 :|  