"can we use those records to calculate the cost basis?" Yes
"how do we determine which purchase price to use?" FIFO