Let intercept on x-axis and y-axis are a and b respectively so that the equation of line is ax+by=1
But a = b [given]
so; x + y = a
Also it passes through (2, 4) (given)
Thus 2 + 4 = a ⇒ a = 6
Now, the reqd. equation of the straight line
x + y = 6
or, x + y - 6 = 0.