Hi Daniel,
The main thing to remember with 'borrow' and 'lend' is who the subject of this action is.
When I lend something, I will temporarily give it to someone. At the same time, the person who I am lending it to, is borrowing it from me.
Tom is lending his pen to Lucy.
Lucy is borrowing Tom's pen.
I hope that helps!