5x+18+2x = 3x+42

solve for x