Let's make a diagram to represent the situation
According to the problem, the union of A and B has 25 elements, which means there are 25 elements in total.
Then, we have 10 elements in A and 24 elements in B. Let's use the following formula
Let's replace the given values and solve for the intersection.
Hence, the number of elements in the intersection is 9.