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