$$uu_x+yu_y=x$$
Solving thanks to the method of characteristics :
The set of ODEs for the characteristics equations is
$\quad \frac{dx}{u}=\frac{dy}{y}=\frac{du}{x}$
From $\quad \frac{dx}{u}\frac{du}{x}\quad\to\quad xdx=udu\quad\to\quad u^2-x^2=c_1\quad$ which is a first characteristic equation.
From $\quad \frac{dx}{u}=\frac{dy}{y}\quad\to\quad \frac{dx}{\sqrt{x^2+c_1}}=\frac{dy}{y}\quad\to\quad \ln|\sqrt{x^2+c_1}+x|=\ln|y|+$constant.
$\frac{\sqrt{x^2+c_1}+x}{y}=c_2 \quad\to\quad \frac{u+x}{y}=c_2\quad$ is a second characteristic equation.
The general solution of the PDE expressed on the form of an implicit equation is :
$$\Phi\left((u^2-x^2)\:,\:\left(\frac{u+x}{y}\right)\right)=0$$
any differentiable function $\Phi$ of two variables.
An equivalent form is :
$$\frac{u+x}{y}=F(u^2-x^2)$$
any differentiable function $F$.
An implicit form of general solution of the PDE is :
$$u=-x+yF(u^2-x^2)$$
The function $F$ has to be determined according to the conditions specified in the wording of the question : $\quad x=y=\frac{u}{2}=s$
$2s=-s+sF((2s)^2-s^2) \quad\to\quad 3=F(3s^2)\quad\to\quad F$ is a constant function $=3$.
According to the specified conditions the particular solution of the PDE is :
$$u=-x+3y$$
Final check :
$u_x=-1\quad u_y=3\quad uu_x+yu_y=-(-x+3y)+3y=x\quad$ OK for the PDE.
$x=y=s \quad\to\quad u=-s+3s=2s\quad$ OK for the specified conditions.