What is the value of x in the solution to this system of equations?

Answer: x = 6.5
Step-by-step explanation:
A) y = -5x + 32
B) 3x - 5y = 22
Substitue what (y) equals into equation B
3x-5(-5x+32) = 22
3x + 25x -160 = 22
28x - 160 = 22
28x = 182
x = 182/28
x = 6.5