Answer:
Hello methyl orange is a pH indicator that is commonly used.
If you drip methyl orange to an acidic liquid it will give you the color red.
If it turns yellow after you drip it then the liquid should be a base.
And it gives a yellowish color for neutral liquids
But in this case salt (NaOH) has an exceptional situation which turns orange after adding m.o.
There is no logical explanation (at least for high school level) I am afraid that you need to memorize it.
This chard attached below may help you to recognize it
good luck, hope it helped<3!