Let the time taken by Vinay to complete the job = x days
Then the time taken by Praveen to complete the job = x + 5 days
Both worked for 6 days to complete a job.
∴Total Work done by them is
6(2x + 5) = x2 + 5x
x2 -7x - = 0
x2 - x + 3x - = 0
x(x - ) + 3(x - ) = 0
(x - )(x + 3) = 0
x - = 0 or x + 3 = 0
x = or x = -3
∴x = (∵ x can't be negative)
∴ Time taken by Vinay = x = 10 days
Time taken by Praveen = x + 5 = 15 days.