How do you translate the following into a equation and solve: "The sum of two numbers is eighteen. Two less than three times the smaller is equal to the larger."?