To solve this problem we must simply have the knowledge of scalar product.
Let's define the route of the two people as A and B. Then the first route, the A, would be given by,
We will take the Cartesian plane system as our reference system in which the north is equivalent to the positive sense of the Y axis. And the positive sense of the X will be equivalent to the east.


Making the scalar product we have to,




Therefore the product of their net displacements from the ree is -90.