Mainly depends on whether you can brush your teeth on time. Wash your teeth with a little water after meals.
I think it's smoke. Then brush your teeth every day and drink less tea.
Drinking tea and smoking are the main reasons why teeth turn yellow.
I hope you protect your teeth.