in case u need explanations:
i) Since I, A, E must be together then we can consider them as one letter such that it can be presented like: [IAE] _ _ _ _ _. Now theres 6 letters to be arranged in a row, or 6! But the vowels can also appear in any order, so we need to rearrange the 3 vowels in a row too, so its 3! Therefore, answer = 6! * 3! = 4320
ii) If there are consonants at the two end positions, we want to deal with the restrictions first. For the 1st position, any of the letters T, R, N, G, L can be chosen. So theres 5 possible outcomes. For the last position, since one of T, R N, G, L is already used or the 1st position there is now 4 letters remaining. Any of remaining 6 numbers are then to be rearranged in a row, which gives 6!
Therefore, answer = 5* 4 * 6!