A variety of multi-legged critters pull up to the function. There are wasps with six legs each, horses with four legs each, and ducks with two legs each. There are five times as many ducks as horses, and two times as many wasps as ducks. If there are total legs at the function, how many wasps pulled up?