Compose a musical piece that incorporates the given motif and adheres to the specified form.
X:1
L:1/8
M:6/8
K:D
['A d>ed c>de g>ed e2 c d>ed', 'c>BA d3 A2 F G>AB'  
X:1
L:1/8
M:6/8
K:D
"^A" A | d>ed c>de | g>ed e2 c | d>ed c>dc | BF^G A2 A | B=GB d>cB | AFD B3 ||"^B" e>fg c>BA | 
 d3 A2 F | G>AB A>dc | d3 A3 | e>fg c>BA | d3 A2 F | G>AB A<dc | d6 ||  