A student was solving a math problem that involved adding and subtracting several numbers. The problem stated: "Calculate the sum of 45 and 27, then subtract 18 from the result, and finally add 12." The student made a mistake and got 80 as the final answer. Identify the error made by the student and determine the correct answer. Let's think step by step and output the final answer within \boxed{}.
user