Use по + Dative to express 'apiece'.
English 'apiece' comes after the thing you're distributing; the Russian preposition по comes before it.
Ї ќм далђ по їблоку. I gave them an apple apiece.
МІ получќли по їблоку. We received an apple apiece.