Let x liters be original amount of juice in container.
We have been given that Gavin drank 3/4 liters of juice from the container. We are also given that it is 3/8 of the original amount of juice.
Now let us set our given information in an equation.

After solving this equation we will get,

Therefore, initially there were 2 liters of orange juice in container.