I want to express in a formula that variables with a certain property shall be added. I think it is best expressed by an example.
$A$ is a superset of $B$ and $C$.
$B$ can have the properties $X$ and $Y$.
$C$ also can have the properties $X$ and $Y$.
I want to sum up all $B$'s and $C$'s with the property $X$.
Is it correct to write
$$ \sum_{x\in A}( B_x + C_x ) ?$$