Where or how do you get the TM for flamethrower on Pokemon SoulSilver?

TM 35: Flamethrower is located at route 28 or the Goldenrod city Game Corner for 10,000 coins.