Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: if the ratio of the sum of the first 6 terms of a g . p . to the sum of the first 3 terms of the g . p . is 343 , what is the common ratio of the g . p ?
