This is pretty easy. No iMac other than some 27 inch models work in target display mode. Not all 27 support it, but some do. No other size iMac and no other Mac period support target display mode. - https://support.apple.com/en-us/HT204592 Even the 2009 models 27 inch iMac won’t target display mode - https://apple.stackexchange.com/questions/53727/can-i-use-my-early-2009-imac-as-an-external-screen