Finished the function. cpg = cost per gallon and pyn = paint you need.