The given compound is: $\ce{CH3-CH2-CH2-CH(CH3)-CH(CH2CH3)-CH2-CH2-CH3}$
The IUPAC name I came up with was 4-ethyl-5-methyloctane but the given answer states 5-ethyl-4-methyloctane.
Are both acceptable? Is there any rule I'm missing out on? I went through the rules but couldn't find the appropriate rule.