I should've known that 1 is the one closer to the -COOH group.
My try is attached. I marked the priorities with numbers. On the top left, I assigned the configuration for the 3 chiral atom, and on the right, I assigned the configuration of the 1 chiral atom. The final structure is on the bottom. Did I do it correct?