Here, the equation of given lines are
x2=y2=z1 and x−54=y−21=z−38
∴ Direction ratios of two lines are (2, 2, 1) and (4, 1, 8).
Let θ be the acute angle between the given lines, then
cos θ=a1a2+b1b2+c1c2√a21+b21+c21√a22+b22+c22⇒ cos θ=2×4+2×1+1×8√22+22+12√42+12+82=8+2+8√4+4+1√16+1+64=18√9√81=183×9=23⇒θ=cos−1(23)