The gradient of a line joining (x,4) and (1,2) is \(\frac{1}{2}\). Find the value of…