A two-digit number is 3 times the sum of the digits. If the digits are reversed, the new number formed is 9 less than three times the original number. What is the two-digit number?

Let the number be ab

10a + b = 3(a + b)

10b + a = 3(10a + b) - 9

Use these two equations to find a and b.