Easy to remember subject and object pronouns. Who received the action?/For whom the action was done? me So, me is object pronoun here. He gave a pencil to me. Who did the action? He So, He is subject pronoun