On the left-most side of the double bond labelled C, that carbon in the double bond is bonded to two other carbons, one from each group. Since these two carbons have the same atomic number, we move on to the atom with the next-highest atomic number that is bonded to each carbon. In the case of the methyl group, it would be H. For the other group, it would be another C. The C has a higher atomic number than the H, so this group has higher priority.
On the right-most side of the double bond labelled C, that carbon is bonded to a H as well as a C. Same rules apply - the C has a higher atomic number than H so the group that it is part of has higher priority.
Overall, the two highest-priority groups on either side are on the same side of the double bond, so it is a Z stereoisomer.