There are 4 fives, but you won't be replacing the first five you draw (it would be impossible for your 2 fives to both be the five of spades)

There are 4 options for your first card drawn, but then there are only 3 options for which five you will draw next.

4*3=12