Solve for A A=p+prt