HBr adds to propene's C=C, and the bromine ends up on the middle carbon, the more substituted end of the double bond.
On paper bromine could land on either carbon, giving 1-bromopropane or 2-bromopropane, but the reaction gives almost entirely 2-bromopropane.
In the first, slow step the π electrons grab the proton from HBr, and it bonds to the end CH2 carbon, the one that already has more hydrogens.
That leaves the positive charge on the middle carbon, a secondary carbocation stabilized by two neighboring carbons and much lower in energy than the primary cation the other way would give.
Bromide then attacks the cation. In short, H goes to the carbon with more hydrogens and Br to the more substituted one, because the more stable carbocation forms faster.