Take O as origin, so B has position vector a+c. Then P=31a and Q=c+41a.
Write the point on PQ as X=P+s(Q−P), which gives (31+s(41−31))a+sc.
Since X is also on OB, X=λ(a+c). Equating coefficients of c gives s=λ and of a gives λ=31+λ(41−31).
Multiply through by 12: 12λ=4+λ(3−4), so λ(12−3+4)=4 and λ=134.