Ok let's take the information given and make an equations system with it.
I'm gonna use H for Hoang present working years and B for those of Bill. We know that right now Hoang has worked for 6 years longer than Bill, with this we can create the following equation:
We also have information from two years ago, at that time Hoang's working years doubled Bill's working years. One would feel tempted to write the equation H=2*B but you have to remember that this information is from the past and H and B stand for working years in the present. The correct way to approach this is change H and B by H-2 and B-2 so we consider that this information is from 2 years ago:
So now we have constructed our equations system:
Let's take the outcome of the first equation and use it in the second one:
And going back to the first equation:
So Hoang has been working at the hospital for 14 years and Bill for 8 years.