When a number x is divided by 24 the remainder is 23 and when it is divided by 36 the remainder is 35. Find the least number that x can be.