The comments have already told you that you need to use CRT (the Chinese Remainder Theorem), but it looks like you are asking for a bit more explanation as to how to use it.
Here's a first example: Say we want to find an integer $n$ which is $1$ mod $3$ and $3$ mod $5$. One way to list a bunch of $1$ mod $3$ numbers until we get a number that is $3$ mod $5$:
$$ 1, 4, 7, 10, \color{red}{13}, 16, 19, \dots $$
In this case $13$ is an answer.
We can also solve this problem the other way, by listing a bunch of $3$ mod $5$ numbers until we get a number that is $1$ mod $3$:
$$ 3, 8, \color{red}{13}, 18, \dots $$
Here's a second example: Now we want to find an integer $n$ which is $1$ mod $3$ and $3$ mod $6$. If we try to list a bunch of $1$ mod $3$ numbers, we never get a number which is $3$ mod $6$:
$$ 1, 4, 7, 10, 13, 16, 19, \dots \color{red}{??} $$
The reason why we can't find such an $n$ is because every number that is $3$ mod $6$ is divisible by $3$, and every number that is $1$ mod $6$ is not divisible by $3$. So the two conditions are incompatible.
By contrast, in the first example, the two conditions don't influence each other. In a certain way, "having a certain remainder mod $3$" has nothing to do with "having a certain remainder mod $5$", so you can always find such an $n$.
A more general way to write the first example is to say that we are looking for an $n$ which is a solution to the following system of equations:
\begin{align*}
n &\equiv 1 \mod 3 \\
n &\equiv 3 \mod 5.
\end{align*}
This is an instance of the following more general problem:
\begin{align*}
n &\equiv a_1 \mod b_1 \\
n &\equiv a_2 \mod b_2.
\end{align*}
In your case, $N = a_1$, $b = b_1$, $0 = a_2$, and $c = b_2$.
You've written that $b$ and $c$ are two different prime numbers. This means, just like the example with mod $3$ and mod $5$, that this system has a solution.
To find this solution, one simple computational method is to use the counting up method demonstrated above. For example, you could count up
$$ N, N + b, N + 2b, N + 3b, \dots $$
and keep going until you get a number which is $0$ mod $c$.
Then you will have some number $B^2$ for which $B^2 \equiv N \mod b$ and $B^2 \equiv 0 \mod c$. It seems like you've said you know how to find $B$ from here, so this should do the trick.
There are more efficient ways to solve this system of equations. As commenters have pointed out, Wikipedia has more information. Hopefully this is a good starting point to gain intuition. (Admittedly, the Wikipedia article looks slightly tricky for a beginner to learn from.) CRT is also a common topic in introductory number theory courses—you might also try googling around a bit and seeing how other people explain it.