How can I find the matrix X that satisfy this equation A*X*B^T = C, in terms of the LU factorizations of A and B.

And when there be no solutions?