Adjust the mass of two blocks connected by a string that passes over a pulley. Determine the acceleration of the masses and the tension in the string.