French often uses a possessive adjective like mon, ton, son, etc. when talking about personal belongings.
So:
Here, mon cartable is natural because the speaker is talking about their own bag.
Celui means the one. It replaces a masculine singular noun that has already been mentioned or is understood from context.
Here, celui stands for cartable.
So:
French uses celui to avoid repeating cartable.
Copain often means friend, but it can sound a little more informal than ami. It can also mean mate or buddy depending on context.
Very roughly:
In everyday speech, mon copain can also mean my boyfriend, but here that meaning is unlikely because the context is about a schoolbag in the cloakroom. So here it simply means my friend.
It is not always absolutely required, but it is very natural when a sentence begins with a setting phrase like this.
The comma helps separate the context from the main action:
Without the comma, the sentence is still understandable, but the comma makes the structure clearer and more natural in writing.
A very literal breakdown would be:
So literally:
In the cloakroom, I find my schoolbag again near the one belonging to my friend.
Natural English would usually be:
In the cloakroom, I find my schoolbag near my friend’s.