Three blocks are located on a horizontal frictionless table. They are connected by a massless cord, as shown in the figure, and pulled to the right. The masses of the three blocks are m1 = 38 kg, m2 = 37 kg, and m3 = 17 kg.

a.) The pulling force is equal to T3 = 45 N. What is the acceleration of the system?
b.) What is the tension T1?
c.) What is the tension T2?

I found that the acceleration is 0.489 but I can't figure out how to find the tensions.