The correct response is:
They were both started from a private collection of books.
Both the Biblioteca Nacional de España (National Library of Spain) and the Library of Congress began as collections that were privately owned before evolving into national libraries with broader collections.