Explanation
An NPN transistor consists of one piece of N-type, then one piece of P-type material, and then one N-type piece of material. A PNP is just the opposite.