Hola Laurine
The reason why you were marked wrong despite getting the right number (in letters) is because there is a hint there asking to write it in digits as decimal numbers are written in digits as per RAE recommendations. However, as dictations are self-scoring exercises, I think you should give yourself a high mark on that one if the number was spelled right, I'd say.
I hope this helps.
Kind regards
Inma