The inter-relationship of hard X-ray and EUV bursts during solar flares