Help me this in c language
8. The brother-sister duo went to shopping and bought "N" items. The items are numbered from 1 to N, and the item "i" weighs "W" grams. Little sister insists on helping his brother in carrying the items. She wants her brother to give her a few items. But Big Brother does not want to burden his sister. But she won't stop bothering him unless she is given a few items to carry. So Brother decides to give her some items. Obviously, Brother wants to give his sister less weight to carry. However, his sister is a smart kid. To avoid being given the bare minimum weight to carry, she suggests that the items are split into two groups, and one group contains exactly "X" items. Then Brother will carry the heavier group, and his sister will carry the other group. Help the Brother in deciding which items his sister should take. Tell the Brother the maximum possible difference between the weight carried by him and the weight carried by his sister.