A teacher had 24 red pens. If the ratio of red pens to blue pens she owned was 8:7, how many pens did she have total