This question already has an answer here:
I have a 2016 Macbook and would like to use my 27" 2010 iMac as a second display for it using Target Display Mode, but I am a bit unsure as to what cable(s) I require, or if it is possible.
The Macbook has 1 USB C port and the iMac has a Mini Display Port.
The following link indicates that the Macbook requires a Mini Display Port or a Thunderbolt port in order to connect to the iMac, but as mentioned, it only has USB-C:
Would a Mini Display Port to USB-C cable (such as this) allow me to use the iMac as a second monitor?