Compose melodies by merging the prescribed musical pattern and the supplied theme.
X:1
L:1/8
Q:1/8=120
M:4/4
K:G
['D>BA>G (F2 d2) E>cB>A D2 z2', 'G4 B>cB>A (B2 F2) A>GF>G E2 z2', 'f2 e2'  
X:1
L:1/8
Q:1/8=120
M:4/4
K:G
 D>BA>G (F2 d2) | E>cB>A D2 z2 | A>BA>^G (A2 d2) | d>^cB>c d2 z2 | D>BA>G (F2 d2) | E>cB>A D2 z2 | 
 B>cB>A d>ed>c | B2 A2 G4 :: B>cB>A (B2 F2) | A>GF>G E2 z2 | d>ed>^c (d2 B2) | A2 ^c2 d4 | 
 g>ag>f (e2 B2) | e>fe>d c2 z2 | A>Bc>d c>BA>G | E2 F2 G4 :|[K:D]"^TRIO" (3AAA B2 (3AAA E2 | 
 (3AAA B2 (3AAA F2 | A>^GA>B (c2 d2) |1 e2 f2 e2 a2 ||2 f2 e2 d4 ||  