Three masses are in a line, in contact, on a frictionless surface with the smallest mass 3 kg to the left, the intermediate mass 7 kg in the middle and the greatest mass 12 kg mass on the right. A 34 N force is applied horizontally in the right direction to the smallest mass. Calculate the contact force (in N) between the smallest and the middle mass.