How to find the common ratio of a geometric sequence