In order to find the direction of the net gravitational force, let's draw the forces acting on m1:
The direction F13 is pointing is given by:

Let's find the forces F12 and F13, and decompose the second one in its horizontal and vertical components using this angle:
![\begin{gathered} F12=(G\cdot M\cdot m)/(d^2)=(6.674\cdot10^(-11)\cdot0.22\cdot10^(-3)\cdot0.22\cdot10^(-3))/((3.6\cdot10^(-2))^2)=2.49\cdot10^(-15) \\ F13=\frac{G\cdot M\cdot m}{(\sqrt[]{d^2+(2d)^2_{}})^2_{}}=(6.674\cdot10^(-11)\cdot0.22\cdot10^(-3)\cdot0.22\cdot10^(-3))/(5\cdot(3.6\cdot10^(-2))^2)=4.98\cdot10^(-16) \\ F13_x=F13\cdot\sin (\theta)=4.98\cdot10^(-16)\cdot\sin (63.435\degree)=4.45\cdot10^(-16) \\ F13_y=F13\cdot\cos (\theta)=4.98\cdot10^(-16)\cdot\cos (63.435\degree)=2.23\cdot10^(-16) \end{gathered}](https://img.qammunity.org/2023/formulas/physics/college/i7e40ykmgmvx4mmrzk1snt2als1vqazpmg.png)
Adding the vertical forces, we have:

Finally, the direction of the net force is given by:
(Let's use a negative Fy, since it's pointing down)
