please help on b16 swap, engine out!

alright well we got the b18 out and the b16 ready to go in, but i am lost and confused about a few things. first of all the b18 distributor wont fit, i cut off the front leg and it doesnt line up with the bolt holes, any one have troubles with this and have some advice, also i dont understand the wiring entirely but i know there are four wires but where do they go on the engine, there is a two prong plug we removed with the jdm harness but there is no plug like that on the b18 harness, is that a knock or whatup please any help is much needed the engine is out of the car and i need help, any other advice or warnings are greatly appreciated.
please help
justin