1/3 = portion of job done by the first person per hour
1/6 = portion of job done by the second person per hour
If x = number of hours it takes to do the job if they both work together, then
1/3 + 1/6 = 1/x
1/2 = 1/x So, x = 2 hours