In a class of 25 students of Mathematics and Economics, 12 students have taken Mathematics and 8 have taken Mathematics but not Economics. Find the number of students who have both Mathematics and Economics, and the number who have taken Economics but not Mathematics.