Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:2/2
K:G
['D2 GABA GEED FGAG FD D2 GABc', 'dBBA dBBe dBBA B2'  
X:1
L:1/8
M:2/2
K:G
 D2 |:"G" GABA GEED |"D7" FGAG FD D2 |"G" GABc dBge |"D7" dBAc"G" BGEF |"G" GABA GEED | 
"D7" FGAG FD D2 |"G" GABc dBge |1"D7" dcAc"G" BGGD :|2"D7" dcAc"G" BGG |]: B |"G" dBBA dBBe | 
 dBBA B2 Be | dBBA Bdge |"D7" dcAc"G" BGGB |"G" dBBA dBBe | dBBA B2 GB | dBBA Bdge |1 
"D7" dcAc"G" BGG :|2"D7" dcAc"G" BG G2 |]  