DME distance is the slant range. So draw a triangle. one side will be 15nm as the aircraft is 15nm away and the other side will be 36000ft which is approx 6nm (because the dme station is not at MSL). So use pythag for this 15 squared plus 6 squared equals 261. Then square root of 261 is approx 16nm.