I do a lot of scanning too. The beds on the affordable scanners are so small, my images are always slanted. :-)
Steps:
1. Click the Measure Tool (so you don't have to eyeball it alone)
2. At the top of your bordered box, draw a line from one side to the other. You may want to zoom in. A quick way to zoom in is to hold the Ctrl key and roll the mouse wheel up and down. In the second video below, he wanted the bridge to be straight. The drawn line will be on an angle.
3. Look at the bottom of Gimp, in the status bar it will show the angle in degrees that you will want to correct.
4. Click the Rotate Tool.
5. Change Direction to Corrective because this ONLY moves the grid which helps you visually see what is going on. I'm not quite sure how Normal is used. It moves both. Show image preview should be checked.
6. Optional Change: Change Clippings to Crop with Aspect, and Number of lines
7. Click the image to display the Rotate Tool's dialog box.
8. Enter the angle value from #3. I entered it in with a negative sign (i.e., -2.18). I then clicked in the text field for "Center X:" so I could see the preview. The grid should have turned and the lines are parallel to your bordered box top (the one you measured). Make any adjustments if you don't like what you see. Click Rotate.
9. To verify, you can drag down a guideline from the top or measure again.
10. Depending on your Rotation options in #6, you may need to either crop the image or Image > Fit Canvas to Layers
A combo of these two videos helped me see how the Tools work and how they could be applied:
Straighten a horizon using rotate tool - GIMP Beginners' Guide ep45
https://www.youtube.com/watch?v=Kc79tmnw7_IGimp- Rotating Photos perfectly with Measure Tool
https://www.youtube.com/watch?v=aS70VvqxxcU