I'd go back and get the driveshaft.. at the yard you got the rear.. if posable..
I'd hit the impala forums as the 77-78 impala is a caprice..
and ask there..
ME i'd wait till the engines in and measure...
shouldn't be all that hard to find a 77-82 b body shaft..
in a junk yard