My first thoughts was that this had something to do with infinite geometric series, but upon closer inspection I saw that this isn't a geometric series. I then tried to factor it into $$2\left(\frac23+\frac29+\frac2{27}+\dots\right)+2\left(\frac29+\frac2{27}+\frac2{81}+\dots\right)+2\left(\frac2{27}+\frac2{81}+\frac2{243}+\dots\right)+\dots$$But since this is infinite too, I am not sure how to proceed.
*this is not the original question, I was just able to deduce it to this. Let me know if there's an easier was to solve this:
You have been placed in the center of a maze. Each room is a shape and paths are lines. Every move, you randomly pick a path, leading you to a different room, independent of any previous moves. Once you reach a star room, you win. What is the expected number of moves you will make before winning?
