Given the ratio of efficiencies of P, Q & R are 3 : 8 : 5
Let the efficiencies of P, Q & R be 3x, 8x and 5x respectively
They can do work for 12 days.
=> Total work = 12 x 16x = 192x
Now, the required time taken by Q to complete the job alone =
days.