MAME and FBA multiple roms location and Retroarch

Hello, I download my oms from a site that separate the roms like this:

MAME 0.182 CHDs (merged) MAME 0.182 ROMs (bios-devices) MAME 0.182 ROMs (merged) MAME 0.182 Software List ROMs (machines-bios-devices) MAME 0.182 Software List ROMs (merged)

the roms are zipped merged and located in different folders.

Bios and roms are in a different folder.

How can I tell MAME and FBA where to looking for roms and the bios files?