Let the transition matrix be: $$\begin{pmatrix}1 & 0 & 0& 0& 0& 0\\\ 1/2 & 0 & 1/2 & 0& 0& 0 \\\ 1/2 & 0 & 0& 0 & 1/2& 0 \\\ 0 & 1/2 & 0& 0& 0& 1/2 \\\ 0 & 0& 0& 1/2 & 0& 1/2 \\\ 0 & 0& 0& 0& 0& 1\end{pmatrix}$$
Given you start at $P_2$ (the second column) find the mean hitting times.
I have tried to do this by marginalisation, but I am unsure on how to actually apply this here, given there are 2 absorbing states. Is it right to write out all of the mean stopping time, e.g. $MST_{P{_{2, 1000}}} $ = $1+1/2$ $MST_{P{_{5, 1000}}} $ and then do the same the other way around?
I am not totally clear about your notation but you can say something like
which are six equations in six unknowns and easily solvable by substitution