HNS: using "ta" marbota / maftoha (mabsota) depends on the word, but generally we use "ta" marbota when the words ends with "a" or "ah" sound (e.g. TayYara, Sarah, SayYara) in the end of these words "ta" marbota.
on the other hand, we use "ta" mabsota when there is "T" sound anywhere in the word (e.g. Taj, Matjar, hoot)
So, "ta" marbota can come only in the end on the word, but "ta" maftoha (mabsota) can come anywhere in the word just like "T" letter of English.