Solve the following equation for real values of $x$:

    \[
    2 \left( 5^x + 6^x - 3^x \right) = 7^x + 9^x.
    \]
1. **Define the function and its properties:**
   Let \( f(a) = a^x \) for some fixed \( x \) and \( a > 2 \). We need to analyze the convexity or concavity of \( f(a) \).

2. **Second derivative of \( f(a) \):**
   \[
   f(a) = a^x
   \]
   \[
   f'(a) = x a^{x-1}
   \]
   \[
   f''(a) = x (x-1) a^{x-2}
   \]
   The sign of \( f''(a) \) determines the convexity or concavity of \( f(a) \):
   - If \( x \ge 1 \), then \( f''(a) \ge 0 \), so \( f(a) \) is convex.
   - If \( 0 < x < 1 \), then \( f''(a) < 0 \), so \( f(a) \) is concave.
   - If \( x \le 0 \), then \( f''(a) \ge 0 \), so \( f(a) \) is convex.

3. **Applying Karamata's inequality:**
   For \( x \ge 1 \), since \( f(a) \) is convex, Karamata's inequality gives:
   \[
   f(9) + f(7) + f(3) + f(3) \ge f(6) + f(6) + f(5) + f(5)
   \]
   For equality to hold, we need \( f''(a) = 0 \), which implies \( x = 1 \).

4. **Analyzing \( 0 < x < 1 \):**
   For \( 0 < x < 1 \), \( f(a) \) is concave, so Karamata's inequality holds in the opposite direction:
   \[
   f(9) + f(7) + f(3) + f(3) \le f(6) + f(6) + f(5) + f(5)
   \]
   For equality, we still need \( f''(a) = 0 \), but there are no \( x \) in \( 0 < x < 1 \) that make \( f''(a) = 0 \).

5. **Analyzing \( x \le 0 \):**
   For \( x \le 0 \), \( f(a) \) is convex again, and the same analysis gives \( x = 0 \) as a solution.

6. **Verification of solutions:**
   - For \( x = 1 \):
     \[
     2 (5^1 + 6^1 - 3^1) = 7^1 + 9^1
     \]
     \[
     2 (5 + 6 - 3) = 7 + 9
     \]
     \[
     2 \cdot 8 = 16
     \]
     \[
     16 = 16
     \]
     This is true, so \( x = 1 \) is a solution.

   - For \( x = 0 \):
     \[
     2 (5^0 + 6^0 - 3^0) = 7^0 + 9^0
     \]
     \[
     2 (1 + 1 - 1) = 1 + 1
     \]
     \[
     2 \cdot 1 = 2
     \]
     \[
     2 = 2
     \]
     This is true, so \( x = 0 \) is a solution.

Thus, the solutions are \( x = 0 \) and \( x = 1 \).

The final answer is \(\boxed{x = 0 \text{ or } 1}\)