How does Lightroom Classic calculate width & height?

This page was created in an attempt to understand the logic that Lightroom Classic (LrC) uses to calculate the pixel dimensions of exported images when you select width & height.