Solve for r q-10=6(r+1)