Gunas or Mental Qualities

Ayurveda believes that how we respond to the external world through the senses depends, greatly, on the specific balance of the Gunas: Sattva, Rajas and Tamas in our minds. So what do these three phases of creation have to do with the mind?