Isaiah 26:3 (NKJV)
You will keep him in perfect peace, whose mind is stayed on You, because he trusts in You.

The degree to which you keep your mind full of God’s thoughts is the degree to which you will experience the peace of God.  The battle between peace and anxiety is being waged in your mind.  If you are continually thinking about the problems in your life, you are on your way to the end of those problems.  Conversely, if you are thinking about the solution, you are on your way to the end of that solution.

You can experience God’s peace simply as a result of your thinking.  Simply by thinking God’s thoughts in your mind.  Simply by holding a God-like image in your mind.  Simply by visualizing who you are in Christ in your mind’s eye.

Every miserable day that you have ever had is a result of the thoughts you have been holding in your mind.  Negative thoughts can enter your mind at any time, but it is up to you to decide whether you are going to meditate on them, and as a result, act on them.

The biblical response would be to replace negative thoughts with God’s thoughts.  When you do this, you are trusting God, and His peace will be perfected in  your life.  The solution: Keep your mind filled with God’s Word, which contains God’s thoughts!