In the Photos app
If you are using photos app offered by Google the open the app
In the bottom side of the photos app you will see the three options like photos, search, sharing and library.
Tap on library option. The it will open a new tab and you will see the options called fevorites, utility, archive and bin.
Tap on bin option. You will see the deleted photos there tap on each photo to restore them and select restore your photos will be restored in old folders.
In the Files app
If you are using the files app offered by Google then open the files app and tap on three bars available on upper left side of the app you will see the options like. Bin, settings, help and feedback. Tap on bin option. Select files and tap on restore your files will be restored automatically in perticular folder.
My files app
Off you are using my files default app the tap on three dots available there like upper right side select recycle bin and then restore the perticular files you want.You can comment below if you have any queries..