trick to solve linear equations