------
## 最终结论
```python
def distinct_echo_substrings(text):
    n = len(text)
    seen = set()
    
    for length in range(1, n // 2 + 1):
        for i in range(n - 2 * length + 1):
            if text[i:i+length] == text[i+length:i+2*length]:
                seen.add(text[i:i+2*length])
    
    return len(seen)

# Example usage:
text1 = "abcabcabc"
print(distinct_echo_substrings(text1))  # Output: 3

text2 = "leetcodeleetcode"
print(distinct_echo_substrings(text2))  # Output: 2
```