No matter what I try, I can't solve this problem. I'm almost done but I need to get just one more thing to be able to finish it.
Problem
The first, second and fourth term of the arithmetic and of the geometric sequence are equal, respectively. The third term of the arithmetic sequence is by $18$ greater than the third term of the geometric sequence. Determine both sequences.
My attempt
I first wrote down the relationships between the terms. $$a_1=b_1$$ $$a_2=b_2$$ $$a_3=b_3+18$$ $$a_4=b_4$$ We can rewrite the last three relationships as $$a_1+d=b_1r$$ $$a_1+2d=b_1r^2+18$$ $$a_1+3d=b_1r^3$$ Then we can square $a_2=b_2$ $$a^2_2=(a_1+d)^2=b^2_2=(b_1r)^2$$ Rewrite $(b_1r)^2$ $$(b_1r)^2=b^2_1r^2=b_1b_1r^2=b_1b_3$$ So, we now know that $a^2_2=b_1b_3$. Based on that, we can write $$(a_1+d)^2=b_1b_3$$ And since $b_1=a_1$ $$(a_1+d)^2=a_1b_3$$ We also know that $a_3=b_3+18 \leftrightarrow b_3=a_3-18$ $$(a_1+d)^2=a_1(a_3-18)$$ Which gives $$(a_1+d)^2=a_1(a_1+2d-18)$$ Now, let's rewrite that as $$a^2_1+d^2+2a_1d=a^2_1+2a_1d-18a_1$$ From that we have $$d^2+18a_1=0$$ Now I just need to get another equation to form a system of equations. From that, I can get $d$ or $a_1$, and then I can use the variable that I've got to get the second variable (i.e. the one I did not got). When I get $a_1$, I also get $b_1$ since $a_1=b_1$. Then I'll have $d$, $a_1$ and $b_1$. If I know these variables, I can easily get $r$. And then I can finally write out both sequences.
Of course, I also have the solution. It is
Arithmetic sequence: $$\langle-2,4,10,16,...\rangle$$ Geometric sequence: $$\langle-2,4,-8,16,...\rangle$$