The volume of a liquid is x liters. When five-eighths of the liquid are poured into a container, the container is two-thirds full. What is the volume of the container?