Isolating variables in linear equations