N is a two digit number such that the number formed by reversing the digits of N is 18 less than N. If the units digit of N is 5, find its tens digit.

let the tens digit be x

then the original number is 10x + 5
and the number reversed would be 50 + x

10x+ 5 - (50+x) = 18

solve for x