Answer:
the chief judge was the sultan's advisor
the chief judge
Explanation:
the Sultan's advisor on religious issues