I don't know if this is possible but is there a way with only css to trigger an element only when 2 classes are set to it, for example if I have

HTML Code:
.someanchor {
color: #FFF;
}
.someanchor {
color: #000;
}
<a class="someanchor"></a>
<a class="someanchor lastanchor"></a>
I want to be able to have the anchor with someanchor class applied to it, to display in white text but black, when it has the 2 classes, I don't have the option to remove the first class