There are one or two scripts around that will perform a perspective transform.
I like the one here:
viewtopic.php?f=23&t=12653 ob_align.py Download, unzip, put in C:\Users\your-name\.gimp-2.8\plug-ins
Might be a bit tricky for a beginner, but briefly.
Painted in the grid lines in red to make them easier to see here, original is a faint white.
1. You can make a rectangle for a corrected size using the select tool and Image -> Guides -> New guides from selection. That will give a template for creating some paths. Hint. if View -> snap to guides is on, turn it off, makes things easier.
Now turn the selection off Select -> None
2. Draw in a 4 node - 3 side path on the grid lines a,b,c,d
3. Make a second path, 1,2,3,4 using the guide lines you created
4. Apply the plugin (it is in Distorts) and it corrects the image to match the guides.