Linear functions and systems of equations