If the surface shown in the figure is frictionless and the strings are inextensible, then the ratio of tensions T1 and T2 in the string is
FBD of 12 kg+3 kg body,
Using Newton's second law,
T1=ma=15a(2)
Dividing (2) by (1), we get
⟹T1T2=15a3a=5