(these are the basic rules and not all of them)
1.go with the largest chain,i.e. the chain with the highest no. of carbon atoms.
2. in case of 2 or more imp. functional groups ,start with the group that is assigned the highest value by iupac, u can google that or better just look into class 11 chem,
3.never talk about fight club