How do margins work in basket orders under futures and options?

Margins are calculated on combined strategy basis, meaning If margin benefit is applicable, it will be automatically adjusted.
You can check the margin requirement upfront before placing the basket order.