I am a number greater than 40,000 and less than 60,000. My ones digit and tens digit are the same. My ten-thousands digit is 1 l
ess than 3 times the sum of my ones digit and tens digit. My thousands digit is half my hundreds digit, and the sum of those two digits is 9. What number am I?