Construct a musical work using the letter-based representation of the specified pattern and the given melodic subject.
X:1
L:1/8
Q:1/2=80
M:2/2
K:A
['fg aedc d f2 c dcBA G', 'B2 ed cA fe ^dB gf e2']  
X:1
L:1/8
Q:1/2=80
M:2/2
K:A
 fg | aedc d f2 c | dcBA G B2 E | ABcA dBec | fdec B2 :: ed | cA fe ^dB gf | e2 fg a2 gf | 
 egaf ecAc | dBAG | A2 :|  