I trashed a file and then its folder. Are they one item in the trash?
No. Files and folders that were already in the trash on their own stay separate items. They are not part of the folder's item, and a restore of the folder does not bring them back.