If David uses 4 GB over the limit, then he has used a total of 6 + 4 = 10 GB of data in that month. Since his plan includes 6 GB of data, he has exceeded the limit by 4 GB.
For the extra 4 GB of data, he will be charged an additional $10 per GB, so his total extra charge will be $10 x 4 = $40.
Therefore, in a month where David used 4 GB over the limit, he would have to pay $30 (the base cost of the plan) plus $40 (the extra charge for the additional data), for a total of $70.
If David went over the limit by x GB, then his total data usage for the month would be 6 + x GB. He would then be charged $10 for each GB over the limit, so his extra charge would be $10 x x.
Therefore, in a month where David went over the limit by x GB, he would have to pay $30 (the base cost of the plan) plus $10x (the extra charge for the additional data), for a total of $30 + $10x.