Subtracting a number from 30 gives the same result as adding the number to 18. What is the number?