
let
x = square ft of tile bought
y = square ft of carpet bought
Therefore,

Your friend is incorrect because he said the tile he purchased is 1600 ft square but base on the equation formed the tile should be 900 ft squared and the carpet should be 1600 square ft. The error their was that he interchanged the square feet value of the carpet and the tiles.