a geometric sequence of posotive terms has first term 2 and the sum of the first three terms is 266 calculate the common ratio

an arithmetric sequense A has first term a and a common difference of 2 and a geometric sequence B has first term a and common ratio 2. the first four terms of each sequence have the same sum. obtain the value of a

any help would be appreciated