I will take it that "AP" and "GP" do stand for "arithmetic progression" and "geometric progression! The first three terms of an arithmetic progression will be of the form a, a+ p, a+ 2p while the first three terms of a geometric progression, having the same first term,, will be of the form a, ar, ar^2.
I interpret "the sum of the corresponding first three terms of the two sequences" differently, I think, than Ishuda. I take that to be 2a, (a+ p)+ ar, and (a+ 2p)+ ar^2.
So we have 2a= 10, a+ p+ ar= 37, and a+ 2p+ ar^2= 114, three equations to solve for three unknown. For example, we can write the second equation as a(1+ r)+ p= 37. if we divide both sides of the first equation by 2 then multiply by 1+ r, we have a(1+ r)= 5(1+ r). Now, subtract that equation from the second: a(1+ r)+ p- a(1+ r)= p= 37- 5(1+ r), eliminating a. We can write the third equation as a(1+ r^2)+ 2p= 114. If we divide the first equation by 2 and multiply by 1+ r^2, we will have a(1+ r^2)= 5(1+ r^2). Subtracting that from a(1+ r^2+ 2p= 114 again eliminates a: 2p= 114- 5(1+ r^2).
So we have the equations p= 37- 5(1+ r) and 2p= 114- 5(1+ r^2). Multiplying the first of those equations by 2 and subtracting from the other eliminates p giving a single quadratic equation to solve for r.