To solve your problem, you just need to remember one thing: measure words always stay with the nouns. Therefore, we put the determination words 那個/這個/那家/這種 in front of the nouns. Let’s take a look at 的. 的 is used with a longer “adjective” (in your case, it’s modifier). And because measure words always stay with the nouns, the only place for the adjectives is in front of the determination.
Let’s break the sentence down.
But…what if it’s a short adjective (here I mean it’s a phrase not a clause)? We then put it in front of the noun.
Hope it would help.