Choose your answer: Who is they in the following sentence?

Scribes were often hired by nobles in the Medieval period since they had the ability to read and write.

Possible answers:
(1). Scribes.
(2). nobles.
(1).