Jose and Alexia were lab partners in science class. They needed to weigh three samples of rock to the nearest thousandth. The first sample weighed 3.346 grams, the second weighed 2.479 grams, and the third weighed 9.240 grams. How much did the samples weigh altogether?