(3, 1) is the point of intersection of lines ax + by = 7 and bx + ay = 5.
Thus, point (3, 1) satisfy both the equations.
i.e., ax + by = 7
Multiplying equation (2) by 3, we get:
3a + 9b = 15 ...(3)
Subtracting equation (1) from equation (3), we get:
3a + 9b = 15
3a + b = 7
--------------------------
8b = 8
⇒ b = 1
Substituting the value of b in equation (1), we get: