Composition of linear functions: find a value