As we know from the given question,
P men working P hours per day in P days can do P units of a work.
1 men working P hours per day in P days can do P / P units of a work.
1 men working 1 hours per day in P days can do P /P x P units of a work.
1 men working 1 hours per day in 1 days can do P /P x P x P units of a work.
Q men working 1 hours per day in 1 days can do P x Q /P x P x P units of a work.
Q men working Q hours per day in 1 days can do P x Q x Q /P x P x P units of a work.
Q men working Q hours per day in Q days can do P x Q x Q x Q/P x P x P units of a work.
Q men working Q hours per day in Q days can do Q3/P2 units of a work.