Used To Be Able To Find The Limit And Confirm It. I Really Don't Know How To Use The Sandwich Theorem.

I just don't understand how and when to use it, for example:

lim x-> infinity (1-cosx) / x^2

in the book, it gives and example ofsinx / x which i get up to some point, and then i lose myself :/

Thank you in advance