Math is the basic word.
Mhath is used when the word before it causes it to lenite. E.g. after a feminine noun
Nighean mhath 'a good girl'
You add an a to any one-syllable adjective after a plural noun
Na taighean matha 'the good houses'
It is also possible to get mhatha but that may be a story for another day.