Assume you have 8 horses and you can race any 5 of them at time. After every race you get the 3rd and 4th fastest among them. How will you find the fastest among them? What would be the general approach if this was n horses?

More than the solution I wanted to know your intuition or approach for this type of problems.