The reasoning: three markers carry most of the answer
HBsAg indicates current infection. Anti-HBc indicates natural exposure to core antigen, not vaccination. Anti-HBs indicates surface antibody protection. Anti-HBc IgM suggests acute infection or flare of chronic infection. Chronic HBV is HBsAg persistence for more than 6 months.