In a three-digit number, the tens digit is the same as the hundreds digit. The ones digit of this number is equal to 1/3 of the sum of the other two digits. Find the number if the sum of all its digits is equal to 24.