Calculating Beer Alcohol Content

Question I just want to confirm that I am calculating alcohol by weight correctly. My starting gravity was 1.051 and my final gravity was 1.012 (51-12=39) is that 3.9% or do i have to then …