If a is partly constant and partly varies with b when a=15 b=2 and when a=27 b=5 a)find the equation for this expression b)find the values of the two constant

a is partly constant and partly varies with b:

a = mb + c

using the two points, you have
2m+c = 15
5m+c = 27
Clearly, 3m=12
Now just crank it out.