I'd like to know if there are specific ways to use each measure word or all can be use freely.
Quote:- "I'd like to know if there are specific ways to use each measure word or all can be use freely"
If I understand the question correctly, my answer is:-
(1) there are specific ways to use each "measure word" Just like in English or I suspect any other language, you have measure words like a "troop" of monkeys, a "flock" of birds, and you could not say a flock of monkeys or a troop of birds, so too in Chinese.
(2) therefore, no, not all measure words can be used freely. Like you could say "十条鱼", or "十本书", and never "十本鱼" or "十条书"
However, one measure word could, in a limited capacity, be used "freely", and it is "个" (gè) It is a go-to measure word when you are at a sudden loss for the correct measure word.
Not all measure words can be used freely. For example 一片披薩 in English: a slice of pizza, people don't say 一間披薩. This example shows that you cannot use it freely 一間 cannot be used on 披薩(pizza). While people can use 一間披薩店 in English: a pizza store. This example shows that 一間 can be used on 披薩店(pizza store).