Question: how to connect two monitors to a imac?
Answer: Make sure that your external display is turned on and connected to your Mac.
Choose Apple menu  > System Preferences, click Displays, then click the Arrangement tab.
Make sure that the Mirror Displays checkbox is selected.