The particle で is used to indicate the means, method, or scope in which an action takes place. In this sentence, みんなで means everyone together.みんなで 12万枚 買いました。
Verb in ても form + (negative/affirmative)N4
The pattern Động từ thể ても is used to express the meaning: Even if..., emphasizing the contrast or opposition between the two clauses.たくさん 買っても、当たらないときは 当たらない
Noun + はN5
The particle は is used to identify the topic of the sentence, emphasizing the object being talked about.みんなは ショックを 受けました。
Verb plain form + と 思いますN5
This pattern is used to express the speaker's thoughts, opinions, and feelings.「たくさん 買っても、当たらないときは 当たらない」と 思いました。