heart rates

Options
I hear a lot of people saying that on cardio workout they keep there heart rate at x amount of its maximum etc
How do I find out what my optimal heart rate is etc

thanks and sorry if its a daft question im still learning