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
['Bddg egdg egdB (TBA)', '(3(efg) (dg)'  
X:1
L:1/8
M:2/2
K:G
 Bddg egdg | egdB (TBA) A2 | Bddg edgd | BdAc (TBG) G z | Bddg egdg | egdB (TBA) A z | bgaf gedc | 
 BdAc (BG) G2 || (3(efg) (dg) agbg | (3(efg) (dg) ea a2 | (3(efg) dg agbg | edef ag g2 | 
 (3(efg) (dg) agbg | (3(efg) (dg) (ea) a2 | bgaf gedc | BdAc (BG) G2 |]  