A bakery produces a total of 210 pastries over a week. Each day, they produce 30 pastries more than the previous day. If they produced 10 pastries on the first day, how many pastries did they produce on the last day of the week? Let's think step by step and output the final answer within \boxed{}.
user