Each of the following dihaloalkanes gives an N-(haloalkyl)phthalimidc on reaction with one equivalent of the potassium salt of phthalimide. Write the structure of the phthalimide derivative formed in each case and explain the basis for your answer.

a. FCH2CH2Br
b. BrCH2CH2CH2CHCH3
|
Br


CH3
|
c. BrCH2CCH2CH2Br
|
CH3