Hi
@ChiralSuperfields. It might help if you take a few steps back. Can you work-through the questions below?
Take the positive direction for each mass to be the direction in which it accelerates.
Since ##m_1## and ##m_2## have the same magnitude acceleration, use the same symbol, ##a##, for the acceleration of each,
##T## is the tension in the string and ##g## is acceleration due to gravity.
Q1. What is the net force on ##m_1## alone?
Q2. Using your answer to Q1, apply Newton’s 2nd law to ##m_1## to write an equation for ##m_1##.
Q3. Give an expression for the net force on ##m_2## alone.
Q4. Using your answer to Q3, apply Newton’s 2nd law to ##m_2## to write an equation for ##m_2##.
Q5. Combine your two equations (from Q2 and Q4) by eliminating ##T##. Reaarange the resulting equation to make ##a## the subject.
Post your answers.
To verify Newton’s second law you will need to check that (within the limits of experimental error) your values of ##a, m_1## and ##m_2## [edit: and ##g##] agree with the (correct) equation from Q5.