Question: how long does it take to learn how to fight?
Answer: First, it depends on what you study. You mentioned Muay Thai as a style and the basics of this can be learned (not mastered) in a few months. If you are an attentive student and practice often (3–4 times a week in class and 2–3 on your own) you can be good at the basics in 4–6 months.