If TD = SG and MD = SL, then angle D would have to equal angle S in order to prove the triangles congruent by SAS.
(Idk if you had a typo, so I'll solve for the other one, too)
If TD = SG and MD = GL then angle D would have to equal angle G in order to prove the triangles congruent by SAS.