she would occasionally run a cautious eye on the medicinal names that were marked on the shelves , and then liken them to the names that were jotted down on the piece of paper that she grasped , and if they matched and suited , she would collect a stated measure of the medicine and place it into a basket that had been set on a table behind her .