Extremal problems on hypergraphs and set families