13 = 5 + 2(x - 17)
Distributive property.
13 = 5 + 2x - 34
Add 34 to both sides.
47 = 5 + 2x
Subtract 5 from both sides.
42 = 2x
Divide both sides by 2.
x = 21