Answer:
Person A complete the task in 1.125 hours
Person B complete the task in 9 hours
Explanation:
Person A complete a task 8 hours sooner than person B
Working together they perform the task in 3 hours
Let call "x" hours person A need to do the task alone
Then person B will take 8*x hours to do the job
In 1 hour person A do 1/x part of the task
In 1 hour person B do 1/8*x part of the task
Then A + B in one hour of work will do
1/x + 1/8x = [ 8 + 1 ]/8*x ⇒ 9/8*x
And according to problem statement that time is 1/3 (one third of the time)
Then 3* (9/8*x) = 3
9 = 8*x
x = 9/8
x = 1.125 hours
And person B will take 8*1,125 = 9 hours