It's pretty complicated... especially in the Pipe Masters with the overlapping heat format. Basically, each surfer is put in the water for 40 minutes and their 2 best waves have to be better than the 2 best waves of the guy they're competing against in their heat