RowReduce[{{aa,ab,ac,ad,1},{ba,bb,bc,bd,2},{ca,cb,cc,cd,2},{da,db,dc,dd,1}}]