In a school, 50 students are enrolled in either a music class, an art class, or both. 30 students are enrolled in the music class, and 25 students are enrolled in the art class. How many students are enrolled in both classes? Let's think step by step and output the final answer within \boxed{}.
user