How is line 6b (taxable Social Security) on 1040SR (for seniors) computed?

line 6a is directly from the SSAA-1099. Where does 6b come from?