An algebraic solution: solve the equations simultaneously. If you take the first and then $5$ times the first plus twice the second you get
$$5x+3y+2z=0\quad\hbox{and}\quad 29x+31y=0\ .$$
Let $x=t$, solve for $y$ from the second equation, solve for $z$ from the first. As long as your arithmetic is accurate the answer will be right.
A geometric solution: find the normal vector to each plane; the line you want is perpendicular to both these vectors; so its direction can be found by using the cross product. You also need a point on the line, but the origin is clearly on both planes and is therefore a point on their line of intersection.