Solve for t A=p+prt for t