John's age is seventeen years less than twice Isabella's age. Together, the sum of their ages is 40. How old is John?

Isabella's age --- x

John's age ----- 2x - 17

x + 2x-17 = 40

solve for x and sub into my definitions