I've already been complemented twice on my previous answer, but then I discovered that I mis-read the question. My entire original answer was wrong, and I have to delete it.
I don't believe that any number can satisfy both of those conditions. I'll say the question has no answer.
A number greater than 40 but less than 50 can be any number from 41 to 49. Examples include 41, 42, 43, 44, 45, 46, 47, 48, and 49. All these numbers satisfy the condition stated in the question.
;