Compose music by adhering to the prescribed format and merging the given motif.
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
['(ag) fefg agfe dcdf A2 (AG) FAdf', 'd2 (cd) edcB ABcd edef e2 (de)'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
 (ag) | fefg agfe | dcdf A2 (AG) | FAdf gfed | cdef e2 (ag) | fefg agfe | dcdf A2 (AG) | 
 FAdf egce | d2 d2 d2 :: (cd) | edcB ABcd | edef e2 (de) | fedc Bcde | fefg f2 (AG) | FA d2 GB e2 | 
 Ad f2 Bd g2 | f2 ed Bdce | d2 d2 d2 :|  