Let's suppose we have a carbon carbon double bond. So let's examine this carbon here. This carbon is attached to an H group and also to a D group. D is simply deteriorate. It's the isotope of H. So since D has a higher atomic weight, d must have a higher priority than H.
So this group has a higher priority than this group. Likewise, for the second carbon in a double bond, we have the following two groups.