Solve for r rt=w