(B) 2, namely (a,b)=(6,5) from (p,q)=(1,5) and (a,b)=(5,6) from (p,q)=(2,3).}
Detailed solution
Let the positive integer roots of x2−ax+b=0 be p,q with p=q, p,q≥1. Then a=p+q, b=pq.
The second equation x2−bx+a=0 has real roots iff b2≥4a, i.e. p2q2≥4(p+q).
Since p=q, WLOG p<q. Try p=1:
q2≥4(1+q)⇒q2−4q−4≥0⇒q≥2+22≈4.83. So q≥5.
But the question asks for the number of pairs (a,b) — without an upper bound, there are infinitely many (p=1, q=5,6,7,…).
Add bound: change to ``a,b≤20''.
Revised Q8 (used in this paper):
Let a and b be positive integers, each at most 20, such that x2−ax+b=0 has two distinct positive integer roots and x2−bx+a=0 has real roots. Number of ordered pairs (a,b)?
With p<q, a=p+q≤20, b=pq≤20, p2q2≥4(p+q):
p=1: q2≥4(1+q), q≥5. Also b=q≤20, a=1+q≤20⇒q≤19. So q∈{5,6,…,19}: 15 pairs.
p=2: 4q2≥4(2+q)⇒q2−q−2≥0⇒q≥2. With q>p=2, so q≥3. b=2q≤20⇒q≤10. a=2+q≤20 auto. q∈{3,…,10}: 8 pairs.
The printed options {1,2,3,4} don't include 27. The original question (without bound) had infinitely many; with bound it gives 27.
Final Q8 (used in this paper):
Let a and b be positive integers, each at most 10, such that x2−ax+b=0 has two distinct positive integer roots and x2−bx+a=0 has real roots. Number of ordered pairs (a,b)?
Let a,b be positive integers with a,b≤6. The quadratic x2−ax+b=0 has two distinct positive integer roots, and x2−bx+a=0 has real roots. Number of ordered pairs (a,b)?
Verified answer: (B) 2, namely (a,b)=(6,5) from (p,q)=(1,5) and (a,b)=(5,6) from (p,q)=(2,3).
Verify (6,5): roots of x2−6x+5=0 are 1,5 (distinct positive integers) \checkmark. Discriminant of x2−5x+6: 25−24=1≥0 \checkmark.
Verify (5,6): roots of x2−5x+6=0 are 2,3 (distinct positive integers) \checkmark. Discriminant of x2−6x+5: 36−20=16≥0 \checkmark.
Why this is CAT-level: Two linked discriminant/integer-root conditions and a bound force a small case search; recognising p2q2≥4(p+q) is the key filter.