CAT 2024 Slot 2 — QA Question 19

Fundamental Principles of P&CEasy

P, Q, R and S are four towns. One can travel between P and Q along 3 direct paths, between Q and S along 4 direct paths, and between P and R along 4 direct paths. There is no direct path between P and S, while there are few direct paths between Q and R, and between R and S. One can travel from P to S either via Q, or via R, or via Q followed by R, respectively, in exactly 62 possible ways. One can also travel from Q to R either directly, or via P, or via S, in exactly 27 possible ways. Then, the number of direct paths between Q and R is

Answer & solution

Correct answer: 7

Answer: 7

Solution

Hard

Let Q ⁣− ⁣RQ\!-\!R have xx paths and R ⁣− ⁣SR\!-\!S have yy paths. Count routes by the multiplication principle for each described option, form two equations, and solve the resulting quadratic for xx.

1

P to S in 62 ways. Paths: PQ=3, QS=4, PR=4PQ=3,\ QS=4,\ PR=4. Routes: via Q (P Q S)=3⋅4(P\,Q\,S)=3\cdot4; via R (P R S)=4y(P\,R\,S)=4y; via Q then R (P Q R S)=3xy(P\,Q\,R\,S)=3xy.

12+4y+3xy=62⇒ 4y+3xy=50\begin{aligned} &12+4y+3xy=62\\ &\Rightarrow\ 4y+3xy=50 \end{aligned}
2

Q to R in 27 ways. Routes: directly =x=x; via P (Q P R)=3⋅4(Q\,P\,R)=3\cdot4; via S (Q S R)=4y(Q\,S\,R)=4y.

x+12+4y=27⇒ x+4y=15 ⇒ 4y=15−x\begin{aligned} &x+12+4y=27\\ &\Rightarrow\ x+4y=15\ \Rightarrow\ 4y=15-x \end{aligned}
3

Solve. Substitute 4y=15−x4y=15-x into step 1's 4y+3xy=504y+3xy=50, using y=15−x4y=\tfrac{15-x}{4}.

(15−x)+3x⋅15−x4=50⇒ 4(15−x)+3x(15−x)=200(×4)⇒ 60−4x+45x−3x2=200⇒ 3x2−41x+140=0\begin{aligned} &(15-x)+3x\cdot\frac{15-x}{4}=50\\ &\Rightarrow\ 4(15-x)+3x(15-x)=200 \quad\text{(}\times4\text{)}\\ &\Rightarrow\ 60-4x+45x-3x^2=200\\ &\Rightarrow\ 3x^2-41x+140=0 \end{aligned}
4

Pick the valid root. Discriminant =412−4⋅3⋅140=1681−1680=1=41^2-4\cdot3\cdot140=1681-1680=1.

x=41±16=7  or  406⇒ x=7(must be a whole number of paths)\begin{aligned} &x=\frac{41\pm1}{6}=7\ \text{ or }\ \tfrac{40}{6}\\ &\Rightarrow\ x=7 \quad\text{(must be a whole number of paths)} \end{aligned}
Direct paths between Q and R=7\text{Direct paths between Q and R}=7

Related Fundamental Principles of P&C questions

See all Permutation & Combination questions →
CAT 2024 Slot 2 QA Q19 — Fundamental Principles of P&C solution | TheCATExam