The real trick in division like this (or any other math problem in general) is to check your answer.
If (y^2+9y+14)/(y+7)=y+2
Then
(y+7)(y+2)=y^2+9y+14
if you do the division, then check. Verify your answer.
BTW your answer -10y+2 if you checked would be
(10y+2)(y+7)=10Y^2+(10*7+2*1)y+14=10y^2+72y+14 is not equal to y^2+9y+14. So you don't have to guess if (10y+2) is the wrong answer---you quickly know it's the wrong answer..
Engineer's link to synthetic division is good. Moreover, synthetic division is a good algorithm to use to practice spreadsheeting (Excel), however, IMO it reality algorithms are good only after you understand what your doing. In this case polynomial division,. and polynomial division is long division with algebraic expressions. There are many good links to this polynomial long division. One can be found
here. (click on blue)
Rap