What four-digit number should replace the question mark? 4342 (3176) 1726, 7995 (7516) 2162, 8418 (????) 1725

Delete the digits outside the brackets that appear twice, and insert the remaining digits in the brackets in the same order that they appear outside the brackets

8418 (4725) 1725.