The temperature of a sample of water increases from 20.7°C to 45.7°C as it absorbs 5675 J of heat. What is the mass of the sample?

q = mass x specific heat x (Tfinal-Tinitial)