Overall accuracy is the law of total probability in disguise:
Here you are given raw counts per group rather than proportions, so convert them to weights first. Return the overall accuracy.
Input
group_sizes = [700, 300]
group_accuracies = [0.95, 0.6]
Output
0.845