A 2.32 kg block slide down a ramp from a height of 4.19 m. The block has a speed of 3.25 m/s when it reaches the bottom. There is friction. What is the work (in J) done by gravity? What is the work done by friction?

I found the work of friction already.

KE= .5m(v^2)
KE= .5(2.32)(3.25^2)
KE= 12.25J

PE=mgh
PE=2.32(9.8)(4.19)
PE=16.31J

PE=KE+Wfriction
16.31=12.25+W
W=4.06

My question is how to find the work done by gravity.
Is it equal to the PE of the block?