Get your taxes done using TurboTax

If the Locality name in box 20 is the same then add all the amounts in box 18 and enter as one number, the same for box 19.

So boxes 18, 19 and 20 will be just one line on the W-2.