A bag contains blue marbles and red marbles, 31 in total. The number of blue marbles is 9 less than 3 times the number of red marbles. How many blue marbles are there?
Similar question that will help you:
https://www.algebra.com/algebra/homework/proportions/Proportions.faq.question.1099157.html