A roller coaster with a mass of 500.0 kg starts from a height of 27.0 meters with a speed of 5.1 m/s. It descends to a height of 2.00 meters before it starts back up. Some energy is loss to the work due to friction. The speed at the bottom of the ramp is 22.0 m/s. How much energy was lost to friction?

I'm not sure how to find friction with the information provided.

the roller coaster has KE at the top along with PE from the height

after descent, it has KE

KEtop + PEdrop = KEbottom + friction loss