We have two diagrams for the universal property of tensor product of rings and the fibre product for schemes. See here for fibre product, which is a square, and here for tensor product, which is a triangle (this is the "for any $R$-bilinear map ..." diagram).
However, I also know that the tensor product is a "fibre coproduct", so they should have diagrams in the same shape.
How can I convert the triangular diagram for tensor product into a square? Where does the bilinear map go?
Question: "How can I convert the triangular diagram for tensor product into a square? Where does the bilinear map go?"
Answer: The diagram (in the case of rings and tensor products) is the following diagram:
$$ \require{AMScd} \begin{CD} C @<<< B \\ @AAA @VVV\\ A @> >> A\otimes_R B \end{CD} $$
Give any pair of maps $\phi: B\rightarrow C,\psi: A \rightarrow C$ commuting over $R$, there is a unique map $\rho: A\otimes_R B \rightarrow C$ commuting with the canonical maps from $A,B$. The map $\rho$ is defined by
$$\rho(a\otimes b):=\psi(a)\phi(b)$$
for any $a\otimes b \in A\otimes_R B$
When you "pass to affine schemes" you get a similar diagram with arrows reversed. This proves the "universal property" for fiber products of affine schemes. The general case follows from a "glueing procedure" (Hartshorne Theorem II.3.3).