After trading all of her rainbow apples, the magical unicorn decided to use some of her sparkly diamonds. She gave away 40 diamonds to her unicorn friend and another 12 diamonds to a fairy. How many sparkly diamonds does the unicorn have left?