How do I use mousePressed/mouseClicked for this part? (image order game)

as I described use mousePressed, detect where the mouse has been pressed etc.

see Can someone help me with this game? (image order) - #5 by Chrisir