Solve for r. k=ar/p