In order for it to be the case that for certain integers $m,\,n$
$$ a_m=4m-1=7n-5=b_n\tag{1}$$
it must be true that
\begin{equation}7n-4m=4
\end{equation}
Thus it must be the case that $n=4k$ for some integer $k$.
So only elements $b_n=b_{4k} =28k-5$ of the $b_n$ sequence will occur in the $a_m$ sequence and it must be the case that $28k-5\le603$. Thus $1\le k\le21.$
So the $21$ numbers $23,51,79,\cdots,583$ will occur in both sequences.
But are these the only terms in common?
Putting $n=4k$ into equation $(1)$ we find that
\begin{eqnarray}
28k-4m&=&4\\
7k&=&m+1
\end{eqnarray}
So $m+1$ must be a multiple of $7$. So we re-write the equation for $a_m$ as
\begin{eqnarray}
a_m&=&4m-1\\
&=&4(m+1)-5\\
&=&28k-5
\end{eqnarray}
Thus the $21$ numbers of the form $28k-5$ are the only numbers the two sequences have in common.
In general we have $a_{7k-1}=b_{4k}$ for $1\le k\le21$.