If (a,4) lies on the graph of 3x+y=10, then the value of a is

Given, (a,4) lies on the graph of 3x+y=10


Thus it is a solution


3a + 4 = 10


a = 2

2