Answer:
Here are the spelling rules for the prefix in-:
The prefix in- becomes im - before words beginning with m or p.
The prefix in- becomes il- before words beginning with l.
The prefix in- becomes ir- before words beginning with r.
The prefix in- is not changed before words beginning with other letters.