Ivan spent a total of $10 - $3 = $<<10-3=7>>7 on cupcakes and a milkshake.
The cost of the cupcake is $10 x 1/5 = $<<10*1/5=2>>2.
So, $7 - $2 = $<<7-2=5>>5 was spent on the milkshake.
#### 5