Questions & Answers about התברר שהכרטיס שלי היה בתיק הקטן כל הזמן.
התברר is the past tense of להתברר. In this kind of sentence, it usually means it turned out, it became clear, or it was выясened / clarified depending on context.
Here it has the common meaning it turned out or it became clear.
So the sentence is structured like:
התברר ש... = It turned out that...
Hebrew often uses the 3rd person masculine singular form for impersonal statements like this.
In English, we say it turned out that..., where it is just a dummy subject. Hebrew usually does not need a separate word for that it, so the verb simply appears in the default impersonal form:
התברר ש... = It turned out that...
So the masculine singular form here does not mean that some masculine person did the action. It is just the normal impersonal way to say this.
ש־ means that.
It introduces the clause that follows התברר:
התברר שהכרטיס שלי היה...
= It turned out that my ticket was...
In Hebrew, ש־ is usually written as a prefix attached to the next word, which is why you see שהכרטיס as one written unit.