"kubek" is a masculine noun so in Accusative (and actually also in Nominative) you use "ten".
"tę" is used with feminine nouns in Accustaive. For example:
Moja siostra lubi tę książkę (ta książka [Nominative] -> tę książkę [Accusative])
What means "My sister likes this book"