A survey of n people in the town of X found that 50% of them prefer Brand A. Another survey of 100 people in the town of Y found that 60% prefer Brand A. In total, 55% of all the people surveyed together prefer Brand A. What is the total number of people surveyed?