For a recent year, 38 more Democrats than Republicans represented a country. If the total number of representatives of the country from these two parties was 498, find the number of representatives from each party.

there were ___ republicans
there were ___ democrats