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.
Scribes