The Hungarian politician said they had agreed to work together to find a solution to the current situation as soon as possible