Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
['edBA G2 BG Bdef gbag', 'eaag bgag'  
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
 gf | edBA G2 BG | Bdef gbag | egdB GFGA | Beed BAAg | edBA G2 BG | Bdef gbag | (3efg dB GFGA | 
 Beed BA A2 || eaag bgag | eaaf gdBd | eaag bgag | egdB GABd | eaag bgag | eaaf g2 ga | bgag edef | 
 gbaf g2 g2 |]  