Joyce bought a skirt for 10 dollars and she spent some money to get it altered. The total amount she spent for the skirt, including alterations, was 18 dollars. How much did Joyce spend on the alterations?