MAtching added , solving linear equation according to the equation added