Cheapest is by Airtrain/subway-$7.25. Take Airtrain from your terminal to Jamaica Station and then E subway to 42nd St. There's also the NYAS express bus to Port Authority Bus Terminal ($15, approx. same location as the subway stop) but I think the last bus leaves the terminals around 10pm.
Cheapest is by