A is partly constant and partly varies as B. Derive the law of partial variation. If A=5 B=3 and if A=7 B=4 find A when B=8

A = mB+n

now, using the given points, just solve
3m+n = 5
4m+n = 7
clearly, m=2, and n = -1, so
A = 2B-1