Quantum Symmetric Pairs and the Reflection Equation