second task of printing an equation