If X and Y are two sets such that X has 40 elements, X ∪Y has 60 elements and X ∩Y has 10 elements, how many elements does Y have?