Write down the solution for this math problem: Solve -38191 = -2016*r + 40433 for r.
39