Grace, Maci, and Kendra all have a large collection of earrings.


The number of pairs of earrings in Grace’s collection is represented by x.
The number of pairs of earrings in Maci’s collection is three times the number of pairs in Grace’s collection.
Kendra has 4 earrings in her collection.
The total number of pairs of earrings in all three girls’ collections is 52.


How many pairs of earrings are in Maci’s collection?