Compose a musical piece that incorporates the given motif and adheres to the specified form.
X:1
L:1/8
M:2/2
K:G
['d BGdG B>cd=f AFcF{_B} A2 FA BGdG', 'A2 FA'  
X:1
L:1/8
M:2/2
K:G
 d | BGdG B>cd=f | AFcF{_B} A2 FA | BGdG B>cdg | BgcA G3 :| f | g>agd g>agd | =f>gfc{B} A2 FA | 
 gagd gagd | B>dgd B2 Gd | gagd gagd | =fgfc{B} A2 FA | BgcA dBge | dcBA G3 ||  