Solve for r k=3r-7s