1 mass $$M$$ does not move in the horizontal direction, hence no equation of motion is required horizontally