2000 AIME Problem 5

Each of two boxes contains both black and white marbles, and the total number of marbles in the two boxes is 25 . One marble is taken out of each box randomly. The probability that both marbles are black is 27 / 50, and the probability that both marbles are white is m / n, where m and n are relatively prime positive integers. What is m+n ?