my tens digit is 5 more than my ones digit and 2 less than my hundreds digit.if the sum of my digit is 18.what number am i?

ones digit : x

tens digit : x+5
hundreds digit : x+7

x + x+5 + x+7 = 18
3x = 6
x = 2

I am 972