Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/4
K:G
['B2 AG', 'd>edg e>=feg d>e{d} dc/B/ B3 A'  
X:1
L:1/8
M:2/4
K:G
 B2 AG | ABcA | B2 AG | e A2 d | B2 cd | efgd | e2 Ad | BG G2 :: d>edg | e>=feg | d>e{d} dc/B/ | 
 B3 A | d>edg | e>=feg | d>e{d} dc/B/ | B3 A | d>c B2 | e>d c2 | g2 d=f | ec c2 | B>c d2 | e>fga | 
 b(gg)d | eg g2 :|  