a 20kg block is connested to a 30kg block by a string that passes over a frictionless pully. the 30kg block is connected to a spring that has niglible mass and a force constant of 250n/m.the 20kg block is pulled 20cm down the incline(40 degrees) and released from rest find the speed of each block when the spring is unstreched

I can't visualize what is going on from your description but, when the spring is unstretched, the potential energy initially stored in the spring will be converted to kinetic energy of both masses and an increase in potential energy of the mass that slides back up the incline.

To find the speed of each block when the spring is unstretched, we'll need to analyze the forces acting on the system and apply the laws of motion. Here's the step-by-step solution:

1. Start by drawing a free-body diagram for each block:

The 20kg block on the incline:
- Gravitational force (mg) acts vertically downwards.
- Normal force (N) acts perpendicular to the incline.
- Friction force (f) opposes the motion and acts parallel to the incline.
- Tension force (T) in the string acts upwards and is the same for both blocks.

The 30kg block connected to the spring:
- Gravitational force (30g) acts vertically downwards.
- Spring force (Fs) in the opposite direction of the displacement of the block.

2. Resolve the gravitational force on the 20kg block into components:
- Perpendicular component: mg_cos(θ), where θ = 40 degrees.
- Parallel component: mg_sin(θ).

3. Determine the friction force on the 20kg block:
- The friction force (f) can be calculated using the formula: f = μ*N, where μ is the coefficient of friction.
- Since the pulley is frictionless, the tension in the string (T) is equal to f.

4. Apply Newton's second law of motion to the 20kg block:
- In the direction perpendicular to the incline: N - mg_cos(θ) = 0, which gives N = mg_cos(θ).
- In the direction parallel to the incline: mg_sin(θ) - f = m*a, where a is the acceleration.
- Substitute the value of f (since T = f): mg_sin(θ) - T = m*a.

5. Apply Newton's second law of motion to the 30kg block:
- mg - Fs = m*a, where Fs is the spring force and a is the acceleration.
- The magnitude of the spring force Fs is given by Fs = k*x, where k is the force constant of the spring and x is the displacement of the block.

6. Apply the constraint equation:
- The displacement of the 20kg block is twice the displacement of the 30kg block (since the string passes over the pulley).
- So, x = 2*h, where h is the height through which the 20kg block is pulled down the incline.

7. Find the acceleration (a) using the equations found in step 4 and 5.
- Rewrite the equation for the 20kg block: a = (mg*sin(θ) - T) / m.
- Substitute the value of T (since T = μ*N): a = (mg*sin(θ) - μ*mg*cos(θ)) / m.
- Substitute the value of x (since x = 2*h): a = (mg*sin(θ) - μ*mg*cos(θ)) / m.

8. Solve for the speed of the 20kg block and 30kg block:
- The speed of the 20kg block can be found using the equation: v = u + a*t, where u is the initial velocity, a is the acceleration, and t is the time.
- The speed of the 30kg block can be found using the equation: v = u + a*t, where u is the initial velocity (0 m/s), a is the acceleration, and t is the time.

9. Calculate the time taken (t) using the equation:
- Consider the motion of the 20kg block. It moves a distance of 20 cm, so h = 0.2 meters.
- Use the kinematic equation: h = (1/2) * a * t^2, and solve for t.

10. Substitute the values obtained in step 9 into the equations from step 8 to find the speeds of both blocks.

Please note that the numerical values of constants such as μ and g will be required to provide an exact answer.