Step-by-step explanation:
Make a table, listing the x and y coordinates of each square's center of gravity and its mass. Multiply the coordinates by the mass, add the results for each x and y, then divide by the total mass.

The x-coordinate of the center of gravity is 15/14 a.
The y-coordinate of the center of gravity is 47/42 a.