To determine the fraction of cousins, you have to divide the number of cousins she invited by the total number of guests.
She invited 12 cousins, 6 aunts, 4 brothers, and 2 sisters, a total of 24 guests.
Then:

Both, 12 and 24 are divisible by 12, to simplify the fraction, divide the numerator and denominator by 12

The fraction