P and Q are engaged to a work. For P alone it takes more than 8 hours more to complete the job than if both worked together. If Q worked alone, he would need 4 and half hours more to complete the job than they both work together. What time would they take to do the work together?

Please tell me the procedure to solve the problem

Thanks