Construct a musical work using the letter-based representation of the specified pattern and the given melodic subject.
X:1
L:1/4
Q:1/4=120
M:5/4
K:G
['A G']  
X:1
L:1/4
Q:1/4=120
M:5/4
K:G
 D |"^(a)" G F E F G | A A D2 D | G G A G A/c/ | B2 z2 B/c/ | d B A G A/B/ | c c E F B | 
 A A D F A/B/ | G2 z2 D | G G A G A/c/ | B2 z2 B/c/ | d B A G A/B/ | c c E F B | A A D F A/B/ | 
 G2- G2 |]  