Based on the​ Census, state A has 18 fewer electoral votes for president than B. If the total number of electoral votes for these two states is 82​, find the number for each state.