Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:12/8
K:D
['F2 G ABA', 'B2 e e2 A B2 c'  
X:1
L:1/8
M:12/8
K:D
|: F2 G ABA F2 G ABA | B2 e e2 d c2 B cBA | F2 G ABA F2 G ABA |1 B2 e e2 A B2 c d3 :|2 
 B2 e e2 A B2 c d2 e |: f3 f2 e d2 c B2 A | B2 e e2 d c2 B cBA | f3 f2 e d2 c B2 A |1 
 B2 e e2 A B2 c d2 e :|2 B2 e e2 A B2 c d3 ||  