Sam, Tim, and Heidi each bought an item at the store. Sam bought a magazine for $2.47, Tim bought a race car for $8.99 and Heidi bought a set of colored pencils for $6.47. What was the total spent by all three kids?