a6_2a.py

from a6_1a import create_rectangle, rectangle_area

def area_difference(r1, r2):
    return rectangle_area(r1) - rectangle_area(r2)

r1 = create_rectangle(10, 20, 10, 10)
r2 = create_rectangle(20, 50, 15, 20)
print(area_difference(r1, r2))