Aeva is selling friendship pins as a service project. Each pin with green beads sells for $3. Each pin with red beads sells for $2. She raised $312. The number of pins with green beads is 11 fewer than the number of pins with red beads. How many red pins did Aeva sell?