Positions = [(3, 7), (15, 7), (5, 2)]

ans = set()

for x,y in Positions:
    for i in range(x,x+10):
        for j in range(y,y+10):
            ans.add((i,j))

print(len(ans))
            

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: