The correct sentence is: Samantha borrowed Julie's pencil.
Here's why:
* Possessive Nouns: The apostrophe is used to show possession. In this case, the pencil belongs to Julie.
* Singular Possessive: Since "Julie" is singular, we add an apostrophe and an "s" to indicate possession.