a) A = 2018.2018 - 2018.(2017+1) = 2018.2017 + 2018.
B = 2017.2019 = 2017.(2018+1) = 2017.2018 + 2017.
Vì 2018.2017 + 2018 > 2017.2018 + 2017 nên A > B.
b) A = 2019.2021 = (2018+1).2021 = 2018.2021 + 2021.
B = 2018.2022 = 2018.(2021+1) = 2018.2021+2018.
Vì 2018.2021+2021 >2018.2021+2018 nên A > B