the average of three numbers is 27.the average of two of them is 18.what is the third number?

18*2 + x = 27*3