A corner is cut off a cube and it produces an irregular triangular pyramid. Two of the three edges of the base (or cut surface) of this pyramid are 39 cm. and 67 cm. and the third is x cm. When standing on this base it has a measured height of 10 cm. Find x and also the volume of this pyramid.