CH3-CH2-CH2-CH2-CH2-CO-CH-CH3
----------------------------------------CH3
The longest chain is 8
octa-3-one
2- methyl octan-3-one
You count from the side that creates the smallest numbers if i remember right, i havent done this in a while and im not in university yet so i could be wrong
If unsure i'd draw it out, the brackets and the number after them just show how many of the group in the brackets are bonding to the previous group.