In a lab experiment, the temperature of a substance is increased by 5 degrees Celsius every hour for 4 hours. After this, it is decreased by 3 degrees Celsius every hour for the next 2 hours. If the initial temperature of the substance was 20 degrees Celsius, what is the final temperature of the substance? Let's think step by step and output the final answer within \boxed{}.
user