Will a 5 speed transmission out of 318 1994 dodge Dakota 4wd fit in 1987 ram w150 4 4wd?
No, a 5-speed transmission from a 1994 Dodge Dakota 4x4 will almost certainly not fit directly into a 1987 Dodge Ram W150 4x4. While both are Dodge trucks and 4x4, the transmissions, transfer cases, bell housings, and mounting points changed significantly between those model years. Even if the overall physical size seemed similar, the bolt patterns, input shaft diameter and spline count, and output shaft dimensions would be different. You'd be looking at a major adaptation project, likely requiring custom parts fabrication, which is generally not practical or cost-effective.