To translate, x years ago, Tevin was twice Danielle's age. To find both of their ages x years ago, we need to subtract x from their current ages. This gives us the following equation:
36 - x = 2(26 - x)
If you wish to determine how many years, then you simply solve this linear equation.