i am getting rectangle is [(8 , 8), (14 , 14)] when i run it

if x1 - x2 = 0 return 0 to avoid "divide by zero" error