Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:4/4
K:D
['fg afaf d2 cd ecec A2 GF', 'BcdB AFAF'  
X:1
L:1/8
M:4/4
K:D
 fg | afaf d2 cd | ecec A2 GF | GABc defg | ecAc e2 fg | afaf d2 cd | ecec A2 GF | Ggbg fdec | 
 d2 dd d2 :| de | fdfd B2 ga | b2 e2 e2 cd | ecec A2 fg | a2 d2 d2 A2 | BcdB AFAF | BcdB AFAF | 
 Ggbg fdec | d2 dd d2 :|  