$A(t+1) =D_{a}= A'B +A'P'$
$B(t+1)=D_{b} = PB'+ P'A$ $${\begin{array}{|cc|c|cc|}\hline
\rlap{\textbf{Present State}}&& \textbf{Input}& \textbf{Next State} \\\hline \hspace{20pt}\textbf{A}\hspace{20pt} & \hspace{20pt} \textbf{B} \hspace{20pt}& \textbf{P} & \textbf{A(t+1)} & \textbf{B(t+1)}\\\hline
0&0&0&1&0 \\\hline 0&0&1&0&1 \\ \hline 0&1&0&1&0\\ \hline 0&1&1&1&0\\ \hline 1&0&0&0& 1 \\ \hline 1&0&1&0&1 \\ \hline 1&1&0&0& 1 \\ \hline 1&1&1&0&0\\ \hline
\end{array}}$$ Note: Recheck the table by putting the values $of A, B$ and $P$ in equations of $A(t+1)$ and $B (t+1)$.