Write both equations in the form a1x+b1y+c1=0:
(a+b)x−2by−(5a+2b+1)=0
3x−y−14=0
So a1=a+b, b1=−2b, c1=−(5a+2b+1) and a2=3, b2=−1, c2=−14.
For infinitely many solutions we need
a2a1=b2b1=c2c1
3a+b=−1−2b=−14−(5a+2b+1)
Step 1: −1−2b=2b. Using the first two ratios:
3a+b=2b⇒a+b=6b⇒a=5b(1)
Step 2: Using the second and third ratios:
2b=145a+2b+1⇒28b=5a+2b+1⇒26b=5a+1(2)
Step 3: Substitute a=5b from (1) into (2):
26b=25b+1⇒b=1
Then a=5×1=5.
Check: with a=5, b=1 the first equation is (5+1)x−2(1)y=5(5)+2(1)+1, i.e. 6x−2y=28. Dividing by 2 gives 3x−y=14, which is exactly the second equation. The two equations represent the same line, so there are infinitely many solutions.
Answer: a=5 and b=1.