Write down the solution for this math problem: Solve 29 - 77 - 78 = -18*r for r.
7