I've just started to learn Quantum Computing and, to do it, I'm reading the course "Introduction from Quantum Computing" by IBM.
Now, I'm reading the chapter "Entangled states", section "Product states" where they show how to compute the probability of measuring the state $|a\rangle$ as $|0\rangle$:
$$P_{|a\rangle}(|0\rangle) = (b_0a_0)^2+(b_1a_0)^2 \\ \begin{gather} = b_0^2a_0^2+b_1^2a_0^2 \\ = (b_0^2+b_1^2)a_0^2 \\ = a_0^2 \end{gather}$$
And they say that I can compute $P_{|b\rangle}(|0\rangle)$ but, how? Changing the order of the amplitudes like this:
$$P_{|b\rangle}(|0\rangle) = (a_0b_0)^2+(a_1b_0)^2 ...$$
But, if so, I don't understand why. I think that, in both cases, we are working on the same state vector $|ba\rangle$, and if I change the amplitude order, I change the state vector to $|ab\rangle$.
How can I compute $P_{|b\rangle}(|0\rangle)$?