The ratio of the number of people who own an iPhone to the number of people who own a Samsung is 5 to 3. If 500 more people on an iPhone then a Samsung how many people on each type of phone?

iphone owners --- 5x

Samsung users --- 3x

5x - 3x = 500

etc