Halim purchased brand A pen for Taka 200 each and brand B pen for Taka 160 each. If he purchased a total of 8 of these pens for Taka 1,200, how many pens of brand A did he purchase?