If five times a number is decreased by 30, the result is the same as when two times the number is increased by 18. What is the number?