You can 
put this solution on YOUR website! .
The simplest way to solve the problem is to make at least one term identical in both equations.
For it, multiply first equation by 2, keeping second equation as is.  You will get
    2Ax + 6y = B
     2x + 6y = 14.
If we want these two equations produce the same graph, the necessary and sufficient condition is
    2A = 2  and  B = 14.
ANSWER.  A = 1;  B = 14.
Solved.