National Highways has confirmed the total cost of the M5 work, which contributed to the new base layer on a section of the motorway.