Solution:
Consider a graph G such that ba>41. Note that the number of edges is 24a+3b. Additionally, if any two vertices of degree 4 are adjacent, we can simply color that edge red and every other edge in G white to get a valid quasi-coloring. Thus, suppose no two vertices of degree 4 are adjacent. Then, consider the subgraph G′ resulting from removing all vertices of degree 4. Note that G′ has 24a+3b−4a=23b−4a<23b−b=b edges. Thus, G′ has fewer edges than vertices, which means that one of its connected components must be a tree T. In this tree T, we can just select some arbitrary vertex v, and perform a breadth-first search on T, greedily coloring the edges as we go along. What this means is that we partition the vertices of T into disjoint subsets S0={v},S1,S2,…, where Sj contains all vertices of T whose distance to v is exactly j, and then we color edges between S0 and S1, and then greedily color the edges between S1 and S2, and so on. Once we color all the edges in T, we can color the edges between vertices in T and the vertices of degree 4 appropriately, and color the remaining edges white to get a valid quasi-coloring.
To show that c=41 is indeed the smallest possible solution, consider the graph shown below. This graph is not quasi-colorable (one can see that coloring the tails of this graph is impossible).

If there are N vertices of degree 4, there are 4N+10 vertices of degree 3. Since 4N+10N→41 as N→∞, we have that for each value c<41, one can find a graph with a=N0 vertices of degree 4 and b=4N0+10 vertices of degree 3 such that ba=4N0+10N0>c.