you type x_0 the "_" signifies a subscript and the "^" signifies a superscript

I learned it by just reading what people typed and googling, you can basically click on the latex script that people use and it'll pop up something that you can look at, so you can copy and try things out for yourself.