5x+2y=12

How do i solve it?

you cannot solve it for a solution, the best you can do is "solve" for one variable in terms of another. For instance,

2y=12-5x
y=12/5 - 2.5 x