Compose melodies by merging the prescribed musical pattern and the supplied theme.
X:1
L:1/8
M:12/8
K:D
['ABA AFA', 'g fed'  
X:1
L:1/8
M:12/8
K:D
|: F | ABA AFA d2 A A2 G | ABA AFA B2 E E2 F | ABA AFA d2 e f2 e | dcB ABc d2 D D2 :: g | 
 fed fed e2 A A2 g | fed fef g2 e e2 g | fed fed fef a2 g | fed ABc d2 D D2 :|  