line of intersection between two triangles

how would i find the line of intersection between tow 3d triangles? I’m trying to come up with a more efficient type of raytracer using volumes instead of rays.