They spent 6 hours in the pool and 2 hours lifting weights. The total time is 8 hours, split into 3 parts in the pool and 1 part lifting weights. You can divide the total time into 4 parts, 3 for pool and 1 for weights. There is a total of 8 hours, so 6 parts swimming and 2 parts lifting. Sorry if I’m bad at explaining, but it makes sense in my head