Žaba skače po vrhovima trokuta

. Na koliko načina može napraviti

skoka tako da započne u vrhu

, a završi u vrhu

?
The frog jumps on the vertices of the triangle

. In how many ways can he make

jumps so that he starts at vertex

and ends at vertex

?
[lang = hr]
Žaba skače po vrhovima trokuta $ABC$. Na koliko načina može napraviti $4$ skoka tako da započne u vrhu $A$, a završi u vrhu $B$?
[/lang]
[lang = en]
The frog jumps on the vertices of the triangle $ABC$. In how many ways can he make $4$ jumps so that he starts at vertex $A$ and ends at vertex $B$?
[/lang]