A large tub is partially filled with x litters of water. If Karen adds 16 liters to x liters, the tub would be 80% full. But if Maya drains 10 liters of water from the x liters, the tub would be 60% full. What is the value of x?