Correct Answer: 12
Explanation:
When O and A occupy end places. Then, the three letters (M, E, G) can be arranged themselves by 3! = 6 ways and two letters (O, A) can be arranged among themselves in 2! = 2 ways. ∴ Total number of ways = 6 x 2 = 12