Your iMac has two ram slots and the maximum upgrade is 32GB (2x16GB). In order to install the new ram you will have to disassemble your iMac, this is no easy task as its complex process which includes removing a seal around your iMac screen.
eBay