Mary and Mia are assembling floor lamps. Mary can assemble 10 lamps per hour. Mia can complete 12 lamps per hour. Together, they assemble 600 lamps. Let x = hours worked by Mia and y = hours worked by Mary. If Mia works for 25 hours, how many hours did Mary work?