Construct a musical work using the letter-based representation of the specified pattern and the given melodic subject.
X:1
L:1/8
M:2/2
K:G
['GB dg edcB Ggbg aAAB GBdg edcB', 'gdga gbag']  
X:1
L:1/8
M:2/2
K:G
|: GB dg edcB | Ggbg aAAB | GBdg edcB | cAdB G/G/G G2 :| (gd).g.a (gb).a.g | fdad bdad | 
 gdga gbag | dgfa g/g/g g2 | gdga gbag | agab c'bab | gedc Bdge | dBcA G/G/G G2 |]  