I am doing my physics homework and am stuck on this one problem. can anyone help me please?

Two blocks are connected by a massless string and are held in position by another massless string along a frictionless incline (as shown in the figure). Let M1 = 58.0 kg, M2 = 65.0 kg, and θ = 39°. Calculate the tension in the string connecting the two blocks.
I have drawn it out and every thing and have tried using Sin and cosine and keep getting my it wrong.

Sure, I can help you with that physics problem. Finding the tension in the string connecting the two blocks involves analyzing the forces and applying Newton's laws of motion.

Let's break it down step by step:

Step 1: Draw a free-body diagram for each block. Label all the forces acting on each block.

For Block 1 (M1):
- The weight force (mg1) acts downward.
- The tension force (T) acts upward along the string.
- The normal force (N1) acts perpendicular to the inclined plane.
- The friction force (F1) is absent since the incline is frictionless.

For Block 2 (M2):
- The weight force (mg2) acts downward.
- The tension force (T) acts downward along the string.
- The normal force (N2) acts perpendicular to the inclined plane.
- The friction force (F2) is absent as well.

Step 2: Resolve the weight forces into their components.

The weight force (mg1) of Block 1 can be resolved into two components:
- mg1 sin(θ) acting parallel to the incline.
- mg1 cos(θ) acting perpendicular to the incline.

The weight force (mg2) of Block 2 is acting perpendicular to the incline, so it doesn't need to be resolved into components.

Step 3: Apply Newton's second law to each block.

For Block 1 (M1), in the direction parallel to the incline:
- The net force F_parallel1 is given by F_parallel1 = m1 * a, where a is the acceleration along the incline.
- The net force F_parallel1 is equal to the component of mg1 that is parallel to the incline (mg1 sin(θ)).
- Therefore, mg1 sin(θ) - T = m1 * a (Equation 1)

For Block 1 (M1), in the direction perpendicular to the incline:
- The net force F_perpendicular1 is given by F_perpendicular1 = 0, since there is no acceleration in this direction.
- The net force F_perpendicular1 is equal to the component of mg1 that is perpendicular to the incline (mg1 cos(θ)) minus the normal force (N1).
- Therefore, mg1 cos(θ) - N1 = 0 (Equation 2)

Similarly, for Block 2 (M2):
- In the direction parallel to the incline: T - mg2 sin(θ) = m2 * a (Equation 3)
- In the direction perpendicular to the incline: N2 - mg2 cos(θ) = 0 (Equation 4)

Step 4: Solve the system of equations.

To find the tension force (T), you need to solve the system of equations consisting of Equations 1, 2, 3, and 4.

First, rearrange Equation 3 to express a in terms of T: a = (T - mg2 sin(θ)) / m2.

Then substitute this expression for a into Equation 1 to eliminate the acceleration:

mg1 sin(θ) - T = m1 * [(T - mg2 sin(θ)) / m2].

Now you can solve for T.

Step 5: Calculate the tension force (T).

Plug in the given values for M1, M2, and θ, and calculate T using algebraic manipulations.

Once you have T, you have found the tension in the string connecting the two blocks.

I hope this explanation helps you understand how to approach and solve the problem!