Are both these sentences correct and do they mean exactly the same:
1-He was selling tickets for participating in a TV show.
2-He was selling tickets to participate in a TV show.
Sentence #1 tells us about tickets that allow somebody to take part in a TV show. We don't know whether or not he wants to participate in the show himself.
Sentence #2 tells us about the reason why he is selling tickets, i.e. in order to get to the TV studio and take part in a TV show. He certainly wants to get in and be part of the show, and selling tickets may be the only way for him to get in there.