Only Add Those W/same Ending

Solve for x.