Fill half of 6 and half of 4 and you have 5 liters
However, without measurement markings or a reliable way to determine halfway, this alternative isn't guaranteed to be exact.
So the mathematically correct answer is that it's impossible, but you can get close using the above method.