I am studying algebraic number theory and I am having trouble understanding something. Let $K$ be a number field with ring of integers $\mathcal{O}_K$. Suppose a prime $p$ does not ramify in $K$. Then we can write $p\mathcal{O}_K = \mathfrak{p}_1...\mathfrak{p}_g$ where this is a product of distinct prime ideals in $\mathcal{O}_K$. Thus by CRT we can see $$\mathcal{O}_K/p\mathcal{O}_K \cong B/\mathfrak{p}_1 \times ... \times B/\mathfrak{p}_g $$
Now we can look at the trace pairing $\mathcal{O}_K/p\mathcal{O}_K \times \mathcal{O}_K/p\mathcal{O}_K \to \mathbb{Z}/p\mathbb{Z}$ via $(x,y) \mapsto Tr(xy)$. I am wondering how to interpret this map in light of chinese remainder theorem. How do I interpret
\begin{align*} \Big{(}(x+\mathfrak{p}_1, ...,x+\mathfrak{p}_g), (y+\mathfrak{p}_1, ...,y+\mathfrak{p}_g)\Big{)} \mapsto Tr(xy+\mathfrak{p}_1, ...,xy+\mathfrak{p}_g) \end{align*} What does the right handside look like? I know it must be the same as $Tr(xy)$ but I am not sure how you get there simply by manipulating the right.