As already mentioned and explained by grand_chat, the final answer is not analytic, rather piecewise. We could also bluntly compute it as follows:
Let us generalize a little bit first. Suppose we are given a piecewise function:
$$f(x) := g_i(x) \mbox{ if } x \in I_i\,,$$
where $I_i$'s are various mutually disjoint intervals and for each interval $I_i$ we have a function $g_i$. Let us define the union of all these intervals:
$$I := \bigcup_i I_i\,,$$ and the two extremal values of $f$:
$$ A := \mathrm{min}\{f(x)\, |\, x \in I\}\,, \qquad B := \mathrm{max}\{f(x)\, |\, x \in I\}\,. $$
Given two numbers $a, b \in I$ such that $a \le b$, let us define the intervals where the values of $f$ lies between $a$ and $b$:
$$ J^{ab}_i := \{x \in I_i\,|\,a \le f(x) \le b\}\,. $$
We will denote the length of an interval by $L$, i.e., $L([a,b]) = b-a$, $L(I) = \sum_i L(I_i)$, etc. Now going back to the probabilities we can write:
$$ P(a \le f(x) \le b) = \sum_i P(a \le g_i(x) \le b) = \frac{\sum_i L(J_i^{ab})}{\sum_j L(I_j)}\,. \tag{P} $$
If the functions $g_i$ are sufficiently nice (for example, if they are linear as in the given problem) we can compute the above sum. Before doing so for the particular problem you gave let us write down the pdf and the cdf:
$$ \mathrm{cdf}_f(a) = P(A \le f(x) \le a)\,, \qquad \mathrm{pdf}_f(a) = \frac{\mathrm d}{\mathrm d a} \mathrm{cdf}_f(a)\,. $$
In the given problem there are two intervals with two functions:
\begin{align} I_1 = [0,1]\,, &\qquad I_2 = [1,2]\,, \\
g_1(x) = 6x+1\,, &\qquad g_2(x) = -3x+10\,.
\end{align}
The minima and the maxima of the function $f$ occurs at $x=0$ and $x=1$ respectively, and the values are:
$$A = 1, \qquad B=7\,.$$
To find the intervals $J^{ab}_1$ and $J^{ab}_2$ we just need to solve the following equations:
$$6x+1=a\,, \quad 6x+1=b\,, \quad \mbox{and,} \quad -3x+10=a\,, \quad -3x+10=b\,.$$
From the solutions we construct the intervals (with the assumption $1 \le a \le b \le 7$):
\begin{align}
J_1^{ab} =&\; \left[\frac{a-1}{6}, \mathrm{min}\left(\frac{b-1}{6},1\right)\right]\,, \\
J_2^{ab} =&\; \left[\mathrm{min}\left(\mathrm{max}\left(\frac{10-b}{3},1\right),2\right), \mathrm{min}\left(\frac{10-a}{3},2\right)\right]\,.
\end{align}
This construction is only valid for linear functions of course. The presence of the min and max looks awkward, it will get slightly better. Using (P) we get:
\begin{align}
P(a \le f(x) \le b) =&\; \frac{1}{2}(L(J_1^{ab}) + L(J_2^{ab}))\,, \\
=&\; \frac{1}{12}\left( b-a+6\, \mathrm{min}\left( \frac{10-a}{3},2 \right) -6\, \mathrm{min}\left( \frac{10-b}{3},2 \right) \right)\,.
\end{align}
So the cdf is given by a piecewise function:
$$ \mathrm{cdf}_f(a) = P(1 \le f(x) \le a) = \left\{ \begin{array}{ll} \frac{a-1}{12} & 1 \le a \le 4 \\ \frac{a-3}{4} & 4 \le a \le 7 \end{array} \right. \,. $$
And, finally for the pdf we get:
$$ \mathrm{pdf}_f(a) = \left\{ \begin{array}{ll} \frac{1}{12} & 1 \le a \le 4 \\ \frac{1}{4} & 4 \le a \le 7 \end{array} \right. \,. $$