how do i find the common ratio of the infinite geometric ratio series with the given sum and first term?

for example:

sum=4
first term=7

sum = a/(1-r)

4 = 7/(1-r)
4-4r = 7
-4r = 3
r = -3/4