____Driveshaft Question??

I had a drive shaft cut for a truck of mine. The tech at the shop just told me to measure from the rear of the transmission output shaft to the center of the center of the pinion. Then he took my shaft and done the rest. It was shortened about 3" cost me $60.00.
As far as yoke, in todays rodder market you may be able to take both u-joints to a good parts store and match the 2 into one. what i mean is they make u-joints with 2 different size caps on one joint.