Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:6/8
K:G
['B2 e dBG', 'g2 g gab'  
X:1
L:1/8
M:6/8
K:G
 G | B2 e dBG | A>BA A2 G | B2 e dBG | d>BB TB2 A | B2 e dBG | A>BA g2 a | g>eg dBG | B>cB B2 :| 
 G | g2 g gab | d>ed dBG | g2 g gab | g>ee e2 d | def gfe | def g>ab | g>eg dBG | B>cB B2 :|  