let one digit be x and the other be y
xy=7 --------------1
x+y=8--------------2
multiply equation 2 by y
xy+y^2 = 8y ---------- 3
subtract 2 from 1
-y^2 = 7-8y
y^2-8y+7=0
y^2-7y-y+7=0
y(y-7)-1(y-7)=0
(y-1)(y-7)=0
y= 7 or 1
y cannot be in the tens place because the number is less than 50.
So the number will be 17