The parametric form of the equation of the line is
The given planes are
To get a point on the line of intersection of the above two planes, substitute
it gives
solving the above two equations, we get
Suppose that the direction ratios of line are
Hence, it implies that
Therefore, the equation of the line