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