What is the solution to this math problem?
Solve -940*r + 20671 + 12229 = 0 for r.
35