One simple mental trick could be the difference between your frustration and happiness.