Normal reation between `A` and `B` would be `N = mg cos theta` ,Its horizontal component is `N sin theta`. Therefore , tension in cord `CD` is equal to this horizontal component.
`T = N sin theta = (mg cos theta) (sin theta)`
`= (mg)/(2) sin 2 theta`