89/90 dakota motor

I have a freind that called and asked if I want the motor out of his truck(blow up) says its a 5.2 liter v8 I asked was it a 360 or 318 he said 318 but I thought that 5.2 would be a 360...anybody have a idea.....my get this motor for the roller setup