An ideal meter stick is balanced on a pencil which is at the 60 cm mark. A 6 gram mass sits at the 90 cm mark. What is the mass of the meter stick?

Again, I have the answer and it is 18g. I have no clue where to even begin with this questions. Thank you in advance.