suppose you want to heat 40g of water by 20c.how many joules of heat are required

Q=cmΔT=4180•0.04•20=... J