If Gideon had driven for 20 minutes less than the time he would have driven if he had driven 20 kilometers less than he did drive but at two-thirds the speed at which he drove, he would have driven 10 kilometers less than he did.

However, if he had driven 20 minutes longer than the time he would have driven if he had driven 10 kilometers less than he did drive but at three-quarters the speed at which he drove, he would have driven 20 kilometers further.

How far did Gideon drive?