Let's name the first digit of the number t and the second digit n. Now understand that the VALUE of the number is 10t+n.
From the first sentence the SUM of the digits, not the number's value is t+n=12
"if you reverse the digits" is different than the sum of the digits because it takes in account the place value. So for that part it means 10n+t
with the rest of the second sentence you have 10n+t=36+ 10t+n
now put alike terms together. 9n-9t=36. By taking out a 9, that simplifies to n-t=4
now you can use elimination using that simplified equation and the n+t=12
the t's cancel out leaving 2n=16, n=8 making t=4
Your number then is 48
let me know if you need some elaboration!