the theory is ab=cd where the lines across form eachother are a and b and the other two lines are a and d
a=7
b=n+4
c=5
d=n+8
7(n+4)=5(n+8)
7n+28=5n+40
2n+28=40
2n=12
n=6