A teacher had 21 red pens. if the ratio of red pens to blue pens she owned was 3:1 how many pens did she have total?