Math problem: Solve 30536 = 1044*n + 12009 - 40981 for n.
What is the solution?
57