This type of stud bolt is often used for turbo mounting where the manifold has M10 threads and the turbocharger flange has 8mm. holes.
M8 thread length: 25mm.
M10 thread length: 10mm.
Total pin bolt length: 35mm.