Well There isn't enough evidence to tell how many hours each of them worked. Yu stated how long they each traveled separately but did not state the amount of hours worked, or any proof for it.
But Assuming that by worked you mean traveled. Annie traveled 5 times the sum of the number of hours Brian traveled and 2. together they traveled 20 hours. find the number of hours each person worked.So 20 is 6 times the number of hours Annie & Brian Worked + 10 (From the 10 extra hours Annie worked from +2) 10/6=1 hour and 40 min So Brain worked/traveled for 1 hour and 40 minuets. Then we find Annie's time. Add 2 hours to 1 hour and 40 and you get 3 hours 40 times that by 5 and you get 18 hours and 20 min So Annie worked/traveled for 18 hours and 20 min I hope this helped