Consider the system of equations $$ Xy=Ab $$ where $X$ and $A$ are $m \times m$ invertible matrices and $y$ and $b$ are $m \times n$ matrices. The matrices $X$ and $y$ are unknown and the matrices $A$ and $b$ are given. Under what restrictions on $X$ (with the same restrictions on $A$) and / or $y$ (with the same restrictions on $b$) do $X=A$ and $y=b$? For example, if we restrict $X$ (and $A$) to be the identity matrix then $X=A$ and $y=b$. What if we impose that $X$ and $A$ must be some band matrices with ones on the diagonal or some sparse matrix?
A necessary condition is the number of unknowns is less than or equal to $m \times n$ because $Ab$ provides $m \times n$ equations.
For instance, if $m=2,n=1$, take $X,A\in E$, $y,b\in F$ where $E=\{\begin{pmatrix}x&u\\v&w\end{pmatrix};v\not= 0,xw\not=uv\}$,$F=\{[z,d]^T;z\not= 0\}$ and $u,v,w,d$ are fixed.
EDIT: we can generalize for $m\geq 3,n=1$ as follows. Take $X,A\in E$, $y,b\in F$ where $E=\{C=[c_{i,j}]\in M_{m,m};c_{1,1}=x_1,\cdots,c_{m-1,m-1}=x_{m-1},\det(C)\not= 0\}$, $F=\{[x_m,d_2,\cdots,d_m]^T;x_m\not= 0\}$ where the $(c_{i,j})$ that are not some $x_i$ and the $(d_i)_i$ are fixed s.t. $c_{m,1}\not= 0$ and $d_2\cdots d_{m-1}\not=0$;