I'm a big fan of "Lagrange Multipliers" but if you don't know that method, you could just write y= (m- Ax)/B so that [itex]x^\alpha*y^\beta= x^\alpha*(m-Ax)^\beta/B^\beta[/itex]. Now, do you know how to find maxima and minima for that?