Build a musical work using the provided motif and following the indicated form.
X:1
L:1/8
Q:1/8=120
M:6/8
K:Dmix
['A d2 f fef g2 e efg', 'a a2 d'  
X:1
L:1/8
Q:1/8=120
M:6/8
K:Dmix
|:"^A" A | d2 f fef | g2 e efg | afa geg | f2 d d2 ::"^B" f/g/ | a2 a a2 d | g2 f f2 e | 
 b2 a a2 d | f2 e e2 A | d2 f fef | g2 e efg | afa geg | f2 d d2 :|  