When this 3 digit number is rounded to the nearest hundred, it rounds up to 500. The hundreds digit is less than 6. The digits in the tens and ones place add to a sim of 10 and they are the same. What is the number?