A-3128 for NJ

How do I find the Federal Adjusted Basis for the home I sold? This is required for A-3128 NJ form.

 

Federal forms have DIFFERENT/CONFUSING amounts on Disposition Report, Smart Worksheet, and Fed #4797 forms.  It looks like Fed forms split Land/Building but I have not idea which form is correct.  WHICH FORM IS CORRECT?