social science in a town election the winning candidate has 220 more votes than the loser. if 810 votes were cast in all how many votes did each candidate receive?

i wrote 220 + x = 810

x=590

candidate one =590

candidate 2 = 220

am i correct this is an algebra question

show the equaiton correct me if need be thanks