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
['A2 A2', 'fefg e4 agae |1 agfe dcBA E4']  
X:1
L:1/8
Q:1/2=80
M:2/2
K:A
 A2 A2 | A2 GA BABc | B4 cAec |1 A2 A2 A2 GF | E4 :|2 A2 BA GEFG | A4 |: e2 e2 | e2 dc fefg | 
 e4 agae |1 agfe dcBA | E4 :|2 agfe dcBc | A4 |:{B} A2 GF | E2 E2 FEFG | E4 ABcd |1 cdef e2 e2 | 
 e4 :|  