Question
A bag contains blue balls, red balls, and green balls. The number of red balls in the bag is 3 more than the number of blue balls, whereas the number of green balls is thrice the number of red balls. If the total number of balls is 27, find the number of green balls.