Let's figure out the total distance he has actually ridden: 3 + 3 = 6 miles.
Now, let's draw this out (see attachment). Notice that if Keith rode his bike directly to the pool, we'd have a right triangle with legs 3 and 3 and with the hypotenuse as the direct path.
Use the Pythagorean Theorem to figure out the hypotenuse length:
1/2 + 1/3 = (3*1)+(2*1) / (2*3) = (3+2)/6 = 5/6 tinha 5/6 de litro para 1 litro faltam 4/6 de litro para 3 litros faltam 2 litros e 4/6 de litro ou, simplificando: 4/6 = 2/3, logo, faltam 2 litros e 2/3 de litro.