Unless one of them is using a texting app, or an iPhone with same imessage Apple ID, which shouldn't be possible, it can't happen.
Your friend might want to follow up on this.
Your friend might want to follow up on this.