You are correct. Each pass that runner $A$ makes she must pass by runner $B$ somewhere. And once runner $A$ passes $B$, there's no way for $A$ to pass $B$ again before $A$ turns around because $B$ is the slower runner. Thus you only need to know how many times $A$ runs each direction which is $12$.
There is a caveat: what happens if they ever both meet at one of the ends? If they met at one of the ends, then that would lower the number of times $A$ passes $B$ by one each time they meet at one end of the track. This is because $A$ is essentially meeting $B$ in both her trip up to the endpoint and away from the endpoint. So let's figure out if they ever meet at one end or the other during the $10\textrm{ hr}$.
Clearly $A$ is at one of the two ends at $\frac 56, \frac{10}6, \dots, 10\textrm{ hr}$. Likewise $B$ is at one of the ends at $\frac 65, \frac{12}5, \dots, \frac{48}{5}\textrm{ hr}$. So, to get the set of points where they might cross at an end$^\dagger$, we can set $$\frac 56k = \frac 65s \\ \implies k=\frac{36}{25}s$$ Because $36$ and $25$ are relatively prime (they share no common prime factors), the smallest positive value of $s$ such that $k$ is an integer is $25$, which does not occur during the timespan of $10\textrm{ hr}$.
So you were right. They pass each other $12$ times. Good job.
$^\dagger$: This method also includes times when they arrive at opposite ends at the same time, but that won't matter in this case.