Can I add different size RAMs to iMac 5K?
The newer imacs support dual channel what means that tou can have 2 different sorts of ram memory.
But make sure that there are at least 2 of the same installed so:
2x 4 gb and 2x 8gb should work fine. For more info, this link