Emulating a PlayStation 2 on a computer is nothing like playing on the console itself. Expect configuration headaches, slowdowns and a lot of trial and error.
Most PS2 game images are distributed as .iso files, though you may also encounter .bin, .img or compressed archives such as .rar and .7z that need unpacking first. The emulator loads the disc image directly — there is no separate "game file" hiding inside.
Getting a title to boot is the easy part. Getting it to run smoothly can take hours of tweaking graphics plugins, frame skipping and CPU settings, and some games remain unplayable regardless.
Emulators themselves are legal in most places; the games are not, unless you own the discs and dump them yourself.