The given system of equations can be written as
2x + 3y - 7 = 0 ….(i)
(a + b)x + (2a - b)y – 21 = 0 ….(ii)
This system is of the form:
a1x+b1y+c1 = 0, a2x+b2y+c2 = 0
where, a1 = 2, b1= 3, c1 = -7 and a2 = a + b, b2 = 2a - b, c2 = – 21
For the given system of linear equations to have an infinite number of solutions, we must have:

Now substituting a = 5 in a + b = 6, we have
5 + b = 6 ⇒ b = 6 – 5 = 1
Hence, a = 5 and b = 1.