The priority is given on the basis of higher atomic mass, and if the masses of the groups attached to the chiral centre are same then the atomic number is preferred.
Cl will get the first priority due to its higher atomic mass,
for second and third priority, we have to check the ethyl and ethyl pentyl group, the linkage of the carbon atom on ethyl group is C-C-H, and for the ethyl pentyl groupit is C-C-C, hence the ethyl pentyl group has an atom of higher atomic number (C) as compared to that of ethyl group (H), hence the ethyl pentyl group is of second priority and ethyl group is of third priority
hydrogen being lightest in atomic mass, gets the least priority