Yes you can offset loss on disposal of shares against gain on disposal of property as they occurred in the same 'initial' period. As the property was held in joint names, then both of you will be entitled to claim your personal annual exemption each.