Mrs. Yale wrote a number between 35 and 48 on her board. The sum of the digits is 7. What number did Mrs. Yale write on her board?

The only possible numbers that satisfy you second condition, that they add up to 7 , are ...

16 25 34 43 52 61

Now which of these also fit your first condition ?