Positive integers $a$ and $b$ satisfy the equations $a^3 + 32b + 2c = 2018$ and $b^3 + 32a + 2c = 1115$. Find $a^2 + b^2 + c^2$.

Let's think step by step and output the final answer within \boxed{}.
user