The figure shows a container of mass m1 = 3.1 kg connected to a block of mass m2 by a cord looped around a frictionless pulley. The cord and pulley have negligible mass. When the container is released from rest, it accelerates at 1.7 m/s2 across the horizontal frictionless surface. What are (a) the tension in the cord and (b) mass m2?