Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:2/2
K:G
['A2 B d2 g', 'gage abaf'  
X:1
L:1/8
M:2/2
K:G
 G2{B} A2 B d2 g | dBAG AFTED | G2 A2 B d2 g | dBTAG TA2 G2 :: gage abaf | gefd Te2 d2 | 
 gage abaf | gdcB A2 D2 | G2 A2 Bddg | dBAG AFTED | G2 TA2 Bddg | dBAG TA2 G2 :|  