Chandra HRC and HST observations of NGC6240: resolving the AGN and Starburst