Text this: The Solutions to Matrix Equation AX=B with Some Constraints