On picture day, 3 times as many girls wore dresses rather than pants. If there are 12 girls in the class, how many wore a dress?