rework the given paragraph to remove grammatical errors:
I thought I couldn't eat all of them and passed half of them for the friend.
I thought I couldn't eat all of them and passed half of them for it to my friend.