seeking matlab mathod for solving it

Hi all,

I am wondering to know whether or not the following system of equations can be solved by matlab? If yes, could you please tell me how?

$\displaystyle A_1 X_1 = B_1 Y ; \\\\\\\

A_2 X_2 = B_2 Y ;

$

The matrices $\displaystyle A_1, A_2,B_1, B_2 $ are 4 by 4 matrices. while the matrices $\displaystyle X_1,X_2,Y $ (unknown variables) are 4 by 1

I forgot to add this before : "The matrices X_1 and X_2 are made up of four variables of which the last three are same. The first one is different. and it is having a relation . The first variable in X_1 is say 'x_0' then the first variable in X_2 is [2-'x_0']"

I think : First solve for Y(dont know how) in the first equation and put it in the second equation.

Please help me how to solve the problem using matrix technique in the matlab