Develop a musical piece that combines the given theme and letter-structured outline.
X:1
L:1/4
M:2/2
K:G
['D B, D G3/2 G/ G', 'A G']  
X:1
L:1/4
M:2/2
K:G
"^*" D/D/ D B, D | G3/2 G/ G (F/G/) | A A2 G | (B d) d D- | D D B, D | G3/2 G/ G G | F A E F | 
 G2 G2 |:{A} B B B/B/B/B/ | c B A G |"^**" A A/A/ A G | (B d) d D- | D B B/B/B/B/ | c B A G | 
 F A E F | G2 G2 :|"^Substitutions""^*" B, D B, D ||"^**" A G2 A ||  