cum se rezolva metoda comparatiei