In a three digit number the hundreds digit is twice the tens digit while the units digit is thrice the tens digit also the sum of its digits is 18 find the number