Construct a musical work using the letter-based representation of the specified pattern and the given melodic subject.
X:1
L:1/8
M:4/4
K:G
['G2 g2 g2 dB cBcd efge dBGB', 'B2 BA BcdB e2 ed efge']  
X:1
L:1/8
M:4/4
K:G
 (3DEF | G2 g2 g2 dB | cBcd efge | dBGB edcB | ABcA GFED | G2 g2 g2 dB | cBcd efge | dBGB ecAF | 
 G2 G2 G2 |: GA | B2 BA BcdB | e2 ed efge | dBGA edcB | ABcA GFED | B2 BA BcdB | e2 ed efge | 
 dBGB ecAF | G2 A2 G2 :|  