Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:C
['AFA AFA', 'def afa', 'fef fef'  
X:1
L:1/8
M:4/4
K:C
 BEA Dec |[M:6/8][K:D]SOSOO .!fermata!PMTCO(Md/B/) | AFA AFA | BGB BdB | AFA Ade | fed BdB | 
 AFA AFA | BAB BAB | def afe | fdB B2 :: A | def afa | baf afe | def afe | fdB BAB | def afa | 
 bag agf | gfg fef | dBB B2 :: A | def{g} fef | fef fef | def fef | edB{d} BAB | def fef | 
 fef fef | baf fef | dBB B2 :|  