Taking 18 common on both the sides,
18(8x2+2x)=18(17)
⇒8x2+2=17x
Factorizing by splitting the middle term,