After keying in UNION ALL, you can copy/past the Leads sub-query and then edit it to work with for Contacts.
This will vertically stack the Contacts data with the Leads data. After completing the second sub-query, save and check your work to see how it’s coming together!