We know that two years from now, my dog will turn 4 years old. This means that currently, my dog is 4 - 2 = 2 years old.
We also know that my dog was born when I was x years old. So, x years ago, my dog was born, and currently, my dog is 2 years old.
This means that currently, I am x + 2 years old.
We are given that currently, I am 17 years old, so we can write: x + 2 = 17.
Solving for x, we get: x = 15.
The value of x is 15.
#### 15
The answer is: 15
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
My dog was born when I was x years old. Two years from now, my dog will turn 4 years old. How old am I now?
If we know the answer to the above question is 17, what is the value of unknown variable x?

### Answer:
