John leaves school to go home. His bus drives 6 kilometres north and then goes 7 kilometres west. It is required to find John's distance from the school. It is equal to the shortest path covered or its displacement. So,
-3 * (-4) matches, as well as the powers (I guess you wanted to communicate that these are powers, but it would also be correct if these where factors)