Hi Curious,
I believe the answer to your question about triangulating a position using two DMEs can be found at this link: https://aviation.stackexchange.com/questions/46135/how-can-i-triangulate-a-position-using-two-dmes.To estimate the position of a target in a global Cartesian coordinate frame by triangulating a set of angle-only detections in MATLAB, you can use the triangulateLOS function. You can learn more about this function here: https://www.mathworks.com/help/fusion/ref/triangulatelos.html
Hope this helps!