Linear equations and matrices