Solving for the common ratio