To build a road, a company charges a flat fee plus a fee that varies depending on the number of kilometers of road built. The cost of the work is described by a graph that passes through points (0, 2) and (12, 7), in millions of reais, depending on the number of kilometers built. Therefore, determine the law that represents this function.