Answer:
1x=-29
2x=-1
Step-by-step explanation:
i hope its useful.
In the given diagram, the traingles USW and UTV are similar triangles and thus the following ratio equality applies to them.
..........(Equation 1)
Checking the diagram given, we see that:
VT=y, WS=22, VU=8, ST=x-2
WU=WV+VU=12+8=20
TU=5
SU=ST+TU=(x-2)+5=x+3
Thus, substituting the required values in (Equation 1) we get:

Now, as can be clearly seen, to find y we will use the first two ratios as:


In a similar manner, to find the value of x we can use the last two ratios:

After cross multiplication we get:

Which can be simplified as:

Thus, 
Therefore, the required answer is:
x=9.5 and y=8.8
Normally it is x ininput and f(x)=y
solve for y and replace y with f(x)
minus 5x from both sides
2y=10-5x
divide both sides by 2
y=5-2.5x
f(x)=5-2.5x