There are two buildings P and Q. If 75 persons are sent from P to Q, then the number of persons in each building is the same. If 25 persons are sent from Q to P, then the number of persons in P is double the number of persons in Q. How many persons are there in building P?