On systems of linear equations, with applications to linear programing and the theory of tests of statistical hypotheses