Answer: 24
What I did:
we have essentially 4 entities given: ma, ka, la, and ahaving placed the 3 pairs there are 4 slots in which the a can be placedthe 3 pairs can be arranged in 3! ways and then there are 4 ways to place the a, for a total ofN=3!⋅4=6⋅4=24