If you have the opportunity to contribute to both a 401(k) and a health savings account (HSA), you may wonder how best to take advantage of them. Determining how much to contribute to each type of plan will require some careful thought and strategic planning.