Foldable For Linear Equations