Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
['BGB def gfg ecA dBG', 'Bee edB def g2 a bag'  
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
 D | G2 G BGB | def gfg | ecA dBG | FAG FED | GFG BGB | def gfg | ecA dBG | FEF G2 :| A | Bee edB | 
 def g2 a | bag agf | geg fdB |1 Bee edB | def g2 a | bag afa | gee e2 :|2 Bee edB | def g2 a | 
 bag agf | g2 g gdB |]  