Sam had 18 dimes in his bank and his friend gave him 10 dimes. How many dimes does Sam have now?