Just draw a neat diagram for this question. Use the formula F=G(m1)(m2)/r^2 and find the force vectors for each four forces ech corresponding to one pair of centrally located mass and the corner located mass. Show this in the diagram. Now, Add the vector-add the forces to get the resultant force. If you want the vector form of the force, you can assume the centrally located mass at the origin.
All that glitters is not gold............but certainly has high refractive index.