linear equations from table