What is the solution to this math problem?
Solve 0 = 371*r + 365*r - 3385 - 12807 for r.
22