Bill buys a red marble and a blue marble. If the total weight of 3 such red marbles and 2 such blue marbles is 84g, and the total weight of 12 such red marbles and 5 such blue marbles is 282g, what is weight of the red marble and the blue marble respectively?