Let the 4−digit pin be abcd
Now given sum of first two is equal to last two, so a+b=c+d
And number available are 0,1,2,3,4,5,6,7
Now Let a+b=c+d=λ
Also the greatest digit that he has used is 7
So, a+b=c+d=λ≥7
Now taking all cases starting from λ=7 we get,
λ=7,(a,b)→(0,7)or(7,0), then (c,d)→(1,6),(2,5),(3,4),(4,3),(5,2),(6,1) and vice-versa, so 2×12=24 numbers
λ=8,(a,b)→(1,7)or(7,1), then (c,d)→(2,6),(3,5),(6,2),(5,3) and vice versa so total 2×8=16 numbers,
λ=9,(a,b)→(2,7)or(7,2) then (c,d)→(3,6),(4,5),(5,4),(6,3) and vice versa, so total 2×8=16 numbers,
λ=10,(a,b)→(3,7),(7,3),so(c,d)→(6,4),(4,6)→8 numbers
λ=11,(a,b)→(4,7),(7,4),so(c,d)→(6,5),(5,6)→8 numbers
\lambda =12,13&14 are not possible,
So, Total numbers =24+16+16+8+8=72